• NeilBrown's avatar
    rtc: Expire alarms after the time is set. (v2) · 5f9679d2
    NeilBrown authored
    If the alarm time programming in the rtc is ever in the past, it won't fire,
    and any other alarm will be queued after it so they won't fire either.
    
    So any time that the alarm might be in the past, we need to trigger
    the irq handler to ensure the old alarm is cleared and the timer queue
    is fully in the future.
    
    This is done whenever the RTC clock is set.
    
    This is the second revision of this patch, which was earlier reverted.
    This version avoids the initialization problem, which is handled by
    a different patch.
    Tested-by: default avatarSander Eikelenboom <linux@eikelenboom.it>
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    [Remove problematic initialization change, update commit log, also
    catch set_mmss case -jstultz]
    Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
    5f9679d2
interface.c 22.9 KB