• Maxim Levitsky's avatar
    rtc: disable hpet emulation on suspend · d1b2efa8
    Maxim Levitsky authored
    I noticed that rtc wont generate interrupts after a resume from disk.
    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>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    d1b2efa8
rtc-cmos.c 29.7 KB