rtc: mc146818: Reduce spinlock section in mc146818_set_time()
authorThomas Gleixner <tglx@linutronix.de>
Sun, 6 Dec 2020 21:46:15 +0000 (22:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Dec 2022 10:31:56 +0000 (11:31 +0100)
commitdb44a9443e586077594808a09820dfe6f408b8b6
treedec9d740fe0f3a508497cdadcdb2fda660fc4d8f
parent17293d630f5f88355b43712888208945581cdc87
rtc: mc146818: Reduce spinlock section in mc146818_set_time()

[ Upstream commit dcf257e92622ba0e25fdc4b6699683e7ae67e2a1 ]

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

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20201206220541.709243630@linutronix.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/rtc/rtc-mc146818-lib.c