]> git.karo-electronics.de Git - karo-tx-linux.git/commit
clocksource: Let clocksource_unregister() return success/error
authorThomas Gleixner <tglx@linutronix.de>
Thu, 25 Apr 2013 20:31:46 +0000 (20:31 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 May 2013 09:09:16 +0000 (11:09 +0200)
commita89c7edbe7d7aa80f507915f3dd801211b116b79
tree9981bee7be59b28979438fc2701228874856607b
parent7eaeb34305dee26634f7c98ae62646da5cebe91d
clocksource: Let clocksource_unregister() return success/error

The unregister call can fail, if the clocksource is the current one
and there is no replacement clocksource available. It can also fail,
if the clocksource is the watchdog clocksource and I'm not going to
provide support for this.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Magnus Damm <magnus.damm@gmail.com>
Link: http://lkml.kernel.org/r/20130425143436.029915527@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/clocksource.h
kernel/time/clocksource.c