]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: set the alarm to the next expiring timer
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 28 Sep 2017 11:53:27 +0000 (13:53 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 28 Sep 2017 11:53:27 +0000 (13:53 +0200)
commit3d62dc978b6a81fc072a1412e51e99b475d4eb93
tree7c1d4e6cbe904588c21463daef8099a6b83a1925
parent1147f0c5bc9c3eb1fc6cba6dd9d643576e0c6ee9
rtc: set the alarm to the next expiring timer

If there is any non expired timer in the queue, the RTC alarm is never set.
This is an issue when adding a timer that expires before the next non
expired timer.

Ensure the RTC alarm is set in that case.

Fixes: 4abb6f4c3742 ("rtc: interface: ignore expired timers when enqueuing new timers")
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/interface.c