• Johannes Berg's avatar
    um: time-travel: Fix periodic timers · eec94b8a
    Johannes Berg authored
    Periodic timers are broken, because the also only fire once.
    As it happens, Linux doesn't care because it only sets the
    timer to periodic very briefly during boot, and then switches
    it only between one-shot and off later.
    
    Nevertheless, fix the logic (we shouldn't even be looking at
    time_travel_timer_expiry unless the timer is enabled) and
    change the code to fire the timer periodically in periodic
    mode, in case it ever gets used in the future.
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
    eec94b8a
timer-internal.h 1.66 KB