]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-cmos.c: fix accidentally enabling rtc channel
authorDerek Basehore <dbasehore@chromium.org>
Fri, 7 Jun 2013 00:07:03 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:41:45 +0000 (15:41 +1000)
commit9cd56d1c52a67ec37397e2fd1b244c583c9f6976
tree38b840ea6f621ec1970a0745b756d67b743f06ec
parentea1ff961ea7e76bb7c282df6ea19e6c1e10d10d8
drivers/rtc/rtc-cmos.c: fix accidentally enabling rtc channel

During resume, we call hpet_rtc_timer_init after masking an irq bit in
hpet.  This will cause the call to hpet_disable_rtc_channel to be undone
if RTC_AIE is the only bit not masked.

Allowing the cmos interrupt handler to run before resuming caused some
issues where the timer for the alarm was not removed.  This would cause
other, later timers to not be cleared, so utilities such as hwclock would
time out when waiting for the update interrupt.

Signed-off-by: Derek Basehore <dbasehore@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-cmos.c