]> Pileus Git - ~andy/linux/commit
timers: Remove delayed irqwork from alarmtimers implementation
authorJohn Stultz <john.stultz@linaro.org>
Thu, 28 Apr 2011 20:29:18 +0000 (13:29 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Thu, 28 Apr 2011 20:39:18 +0000 (13:39 -0700)
commit7068b7a16270f1e85a8893d74b0f3c58d7826883
tree114143f4724543c89d93e95bbb7d3f03f1abb5d6
parent180bf812ceaf01eb8ac69b86f3be0bd57f697668
timers: Remove delayed irqwork from alarmtimers implementation

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: John Stultz <john.stultz@linaro.org>
kernel/time/alarmtimer.c