Commit a7251381 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by sanglipeng
Browse files

rtc: mc146818: Reduce spinlock section in mc146818_set_time()

stable inclusion
from stable-v5.10.159
commit db44a9443e586077594808a09820dfe6f408b8b6
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7NTXH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=db44a9443e586077594808a09820dfe6f408b8b6



--------------------------------

[ Upstream commit dcf257e9 ]

No need to hold the lock and disable interrupts for doing math.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20201206220541.709243630@linutronix.de


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 944f31a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment