rtc-cmos: report wakeups from interrupt handler
commitb45bae36b805287c76366c908de58b5c2c0d46b0
authorPaul Fox <pgf@laptop.org>
Mon, 16 Jul 2012 19:56:26 +0000 (16 21:56 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Tue, 17 Jul 2012 20:14:48 +0000 (17 22:14 +0200)
tree5074191c9cfe413e0c79b0cd5314adc5d4499081
parent4f31f5b19eb0418a847b989abc9ac22af1991fe2
rtc-cmos: report wakeups from interrupt handler

When suspending the system with an important RTC wake alarm active,
it is possible that the RTC alarm will expire before the system has
gone to sleep (e.g. short alarm timer, or an unusually long suspend
routine).

If this happens, the RTC alarm should trigger a wakeup event, possibly
aborting system suspend. This condition can be detected in the form
of an RTC alarm interrupt.

Signed-off-by: Paul Fox <pgf@laptop.org>
Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/rtc/rtc-cmos.c