diff options
author | Rabin Vincent <[email protected]> | 2011-11-22 11:03:14 +0100 |
---|---|---|
committer | John Stultz <[email protected]> | 2012-01-26 19:41:42 -0800 |
commit | 41c7f7424259ff11009449f87c95656f69f9b186 (patch) | |
tree | d0923396755a299e0c21066575ace82b93697429 /net/lapb/lapb_timer.c | |
parent | 5f9679d29c7959445d4af1eb85ee55e4ebad4a93 (diff) |
rtc: Disable the alarm in the hardware (v2)
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: [email protected]
Cc: John Stultz <[email protected]>
Signed-off-by: Rabin Vincent <[email protected]>
[Merged in the second revision from Rabin]
Signed-off-by: John Stultz <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions