• Maxim Levitsky's avatar
    I noticed that rtc wont generate interrupts after a resume from disk. · d025bc0b
    Maxim Levitsky authored
    Here hpet rtc emulation is used.
    
    Problem is that rtc hpet comparator, isn't reinitialized after resume.
    Easiest way to solve this, is always mask all hpet interrupts on suspend
    This is triggered, when suspending with alarm set.
    
    
    Otherwise, hpet driver will think it doesn't need to reinitialize
    the rtc comparator, thus rtc interrupts won't work.
    
    This emulation isn't need for wakealarm.
    Signed-off-by: default avatarMaxim Levitsky <maximlevitsky@gmail.com>
    Cc: David Brownell <david-b@pacbell.net>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    d025bc0b
rtc-cmos.c 29.7 KB