Messages in this thread Patch in this message |  | | Date | Wed, 31 Oct 2001 14:08:41 -0800 | From | Tim Hockin <> | Subject | [PATCH] don't reset alarm interrupt on RTC |
| |
All,
Attached is a 1-liner to not clear the Alarm-Int-Enable bit automatically on the RTC device. This makes wake-on-alarm possible.
Please let me know if there is a problem with it. This is against 2.4.13 for inclusion in 2.4.14.
Tim -- Tim Hockin Systems Software Engineer Sun Microsystems, Cobalt Server Appliances thockin@sun.comdiff -ruN dist-2.4.13+patches/drivers/char/rtc.c linux-2.4/drivers/char/rtc.c --- dist-2.4.13+patches/drivers/char/rtc.c Mon Oct 1 16:43:52 2001 +++ linux-2.4/drivers/char/rtc.c Mon Oct 29 11:07:42 2001 @@ -560,7 +560,7 @@ spin_lock_irq(&rtc_lock); tmp = CMOS_READ(RTC_CONTROL); tmp &= ~RTC_PIE; - tmp &= ~RTC_AIE; + //tmp &= ~RTC_AIE; tmp &= ~RTC_UIE; CMOS_WRITE(tmp, RTC_CONTROL); CMOS_READ(RTC_INTR_FLAGS); |  |