commit | 9082c465a5403f4a98734193e078552991a2e283 | [log] [tgz] |
---|---|---|
author | John Stultz <john.stultz@linaro.org> | Wed Aug 10 12:41:36 2011 -0700 |
committer | John Stultz <john.stultz@linaro.org> | Wed Aug 10 14:55:29 2011 -0700 |
tree | 387e564f326488abe9ee84b0c723294ea573de1e | |
parent | a28cde81ab13cc251748a4c4ef06883dd09a10ea [diff] |
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>