]> git.baikalelectronics.ru Git - kernel.git/commit
alarmtimers: Add try_to_cancel functionality
authorJohn Stultz <john.stultz@linaro.org>
Wed, 10 Aug 2011 19:41:36 +0000 (12:41 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 10 Aug 2011 21:55:29 +0000 (14:55 -0700)
commita60afa2fd6c0f73cf79cbc82f2a7f31fc94027ae
tree387e564f326488abe9ee84b0c723294ea573de1e
parent4118ad19408edfdcbae101e1ebd2a48df0d59a48
alarmtimers: Add try_to_cancel functionality

There's a number of edge cases when cancelling a alarm, so
to be sure we accurately do so, introduce try_to_cancel, which
returns proper failure errors if it cannot. Also modify cancel
to spin until the alarm is properly disabled.

CC: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
include/linux/alarmtimer.h
kernel/time/alarmtimer.c