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)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 11 Dec 2020 09:40:52 +0000 (10:40 +0100)
commitdcf257e92622ba0e25fdc4b6699683e7ae67e2a1
tree15d08f71402e49cbe812cb7a3958a65ade3657fe
parent05a0302c35481e9b47fb90ba40922b0a4cae40d8
rtc: mc146818: Reduce spinlock section in mc146818_set_time()

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
drivers/rtc/rtc-mc146818-lib.c