From: Rabin Vincent Date: Tue, 22 Nov 2011 10:03:14 +0000 (+0100) Subject: rtc: Disable the alarm in the hardware X-Git-Tag: v3.2-rc5~43^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0afabd3d553c521e003779c127143ffde55a16f;p=pandora-kernel.git 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 Signed-off-by: Rabin Vincent Signed-off-by: John Stultz --- Reading git-diff-tree failed