alarmtimer: Lock k_itimer during timer callback
authorRichard Larocque <[email protected]>
Wed, 10 Sep 2014 01:31:05 +0000 (18:31 -0700)
committerJohn Stultz <[email protected]>
Fri, 12 Sep 2014 20:59:12 +0000 (13:59 -0700)
commit474e941bed9262f5fa2394f9a4a67e24499e5926
tree1295960e17591bead96c9ae706d15c51bd68e468
parent265b81d23a46c39df0a735a3af4238954b41a4c2
alarmtimer: Lock k_itimer during timer callback

Locks the k_itimer's it_lock member when handling the alarm timer's
expiry callback.

The regular posix timers defined in posix-timers.c have this lock held
during timout processing because their callbacks are routed through
posix_timer_fn().  The alarm timers follow a different path, so they
ought to grab the lock somewhere else.

Cc: [email protected]
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Prarit Bhargava <[email protected]>
Cc: Sharvil Nanavati <[email protected]>
Signed-off-by: Richard Larocque <[email protected]>
Signed-off-by: John Stultz <[email protected]>
kernel/time/alarmtimer.c