• John Stultz's avatar
    timers: Remove delayed irqwork from alarmtimers implementation · 7068b7a1
    John Stultz authored
    Thomas asked about the delayed irq work in the alarmtimers code,
    and I realized that it was a legacy from when the alarmtimer base
    lock was a mutex (due to concerns that we'd be interacting with
    the RTC device, which is protected by mutexes).
    
    Since the alarmtimer base is now protected by a spinlock, we can
    simply execute alarmtimer functions directly from the hrtimer
    callback. Should any future alarmtimer functions sleep, they can
    simply manage scheduling any delayed work themselves.
    
    CC: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
    7068b7a1
alarmtimer.c 17 KB