]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/rtc/rtc-cmos.c: fix accidentally enabling rtc channel
authorDerek Basehore <dbasehore@chromium.org>
Wed, 12 Jun 2013 21:04:45 +0000 (14:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 Jun 2013 23:29:45 +0000 (16:29 -0700)
commit9b67569e0ec12bf394bb6e5350e38539d4ed6fa3
tree38bf89d51bd1d64d0afc9d3dc85968ad69991597
parent732c673419baeb6d8f590ced30edc9f21c3eab05
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.

[akpm@linux-foundation.org: coding-style tweak]
Signed-off-by: Derek Basehore <dbasehore@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-cmos.c