clocksource: Allow clocksource select to skip current clocksource
authorThomas Gleixner <tglx@linutronix.de>
Thu, 25 Apr 2013 20:31:45 +0000 (20:31 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 May 2013 09:09:15 +0000 (11:09 +0200)
commitf5a2e34375a5e2b711aea488ac3ae50eeba6d57c
tree807d8e1ffb7c0b45a63e0dab7b0cb74d8bf52982
parent09ac369c825d9d593404306d59062d854b321e9b
clocksource: Allow clocksource select to skip current clocksource

Preparatory patch for clocksource unbind support.

Split out code from clocksource_select and modify it, so it skips the
current clocksource on request and tries to find a fallback
clocksource. Convert all existing users. No functional change.

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/20130425143435.834965397@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/clocksource.c