aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-generic.c
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2011-11-22 05:03:14 -0500
committerLuis Henriques <luis.henriques@canonical.com>2012-04-05 11:17:22 -0400
commit203f024ac117c4724f76fbf570c04491917b2721 (patch)
tree05a5c7018a6a99f37d9d8a74a3167eba288aaf37 /drivers/rtc/rtc-generic.c
parenta7c765a58308899054f0ff52db2bf1671506c41e (diff)
rtc: Disable the alarm in the hardware (v2)
BugLink: http://bugs.launchpad.net/bugs/971808 commit 41c7f7424259ff11009449f87c95656f69f9b186 upstream. Currently, the RTC code does not disable the alarm in the hardware. This means that after a sequence such as the one below (the files are in the RTC sysfs), the box will boot up after 2 minutes even though we've asked for the alarm to be turned off. # echo $((`cat since_epoch`)+120) > wakealarm # echo 0 > wakealarm # poweroff Fix this by disabling the alarm when there are no timers to run. The original version of this patch was reverted. This version disables the irq directly instead of setting a disabled timer in the future. Cc: John Stultz <john.stultz@linaro.org> Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> [Merged in the second revision from Rabin] Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/rtc/rtc-generic.c')
0 files changed, 0 insertions, 0 deletions