clocksource: Let timekeeping_notify return success/error
authorThomas Gleixner <tglx@linutronix.de>
Thu, 25 Apr 2013 20:31:44 +0000 (20:31 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 May 2013 09:09:14 +0000 (11:09 +0200)
commitba919d1caa2e624eb8c6cae1f2ce0a253e697d45
tree3f1ca3d84720e41093cd6723ff4a92122ecfec2e
parent5d33b883aed81c6fbcd09c6f7c3619eee850a7e2
clocksource: Let timekeeping_notify return success/error

timekeeping_notify() can fail due cs->enable() failure. Though the
caller does not notice and happily keeps the wrong clocksource as the
current one.

Let the caller know about failure, so the current clocksource will be
shown correctly in sysfs.

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