• Maxim Levitsky's avatar
    I noticed that rtc wont generate interrupts after a resume from disk. · 3eca9d98
    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>
    3eca9d98
rtc-cmos.c 29.7 KB