]> 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)
commit1f47cdb8b854b9cf68870861033b40d642e55156
tree38bf89d51bd1d64d0afc9d3dc85968ad69991597
parent69089e6b773fe245e098b9145bdbafba9b69d3ab
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