aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/clocksource.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2013-04-25 16:31:46 -0400
committerThomas Gleixner <tglx@linutronix.de>2013-05-16 05:09:16 -0400
commita89c7edbe7d7aa80f507915f3dd801211b116b79 (patch)
tree9981bee7be59b28979438fc2701228874856607b /include/linux/clocksource.h
parent7eaeb34305dee26634f7c98ae62646da5cebe91d (diff)
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>
Diffstat (limited to 'include/linux/clocksource.h')
-rw-r--r--include/linux/clocksource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h
index 32a895b114d8..2f39a4911668 100644
--- a/include/linux/clocksource.h
+++ b/include/linux/clocksource.h
@@ -282,7 +282,7 @@ static inline s64 clocksource_cyc2ns(cycle_t cycles, u32 mult, u32 shift)
282 282
283 283
284extern int clocksource_register(struct clocksource*); 284extern int clocksource_register(struct clocksource*);
285extern void clocksource_unregister(struct clocksource*); 285extern int clocksource_unregister(struct clocksource*);
286extern void clocksource_touch_watchdog(void); 286extern void clocksource_touch_watchdog(void);
287extern struct clocksource* clocksource_get_next(void); 287extern struct clocksource* clocksource_get_next(void);
288extern void clocksource_change_rating(struct clocksource *cs, int rating); 288extern void clocksource_change_rating(struct clocksource *cs, int rating);