aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/class.c
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2011-11-22 11:03:14 +0100
committerJohn Stultz <john.stultz@linaro.org>2011-11-22 19:25:43 -0800
commitc0afabd3d553c521e003779c127143ffde55a16f (patch)
tree5a4a93f244e2e9cbc87f24958de3e83397f978fb /drivers/rtc/class.c
parenthrtimer: Fix extra wakeups from __remove_hrtimer() (diff)
downloadlinux-dev-c0afabd3d553c521e003779c127143ffde55a16f.tar.xz
linux-dev-c0afabd3d553c521e003779c127143ffde55a16f.zip
rtc: Disable the alarm in the hardware
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. Cc: stable@kernel.org Cc: John Stultz <john.stultz@linaro.org> Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'drivers/rtc/class.c')
0 files changed, 0 insertions, 0 deletions