diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2007-02-16 01:27:33 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-16 08:13:57 -0800 |
commit | 92c7e00254b2d0efc1e36ac3e45474ce1871b6b2 (patch) | |
tree | 9314279ec92bbbe57ac79667860b49d4df6c12cd /include/linux/clocksource.h | |
parent | 26a08eb301a2e3fce5a501e3dd26cf3ec46591d7 (diff) | |
download | linux-92c7e00254b2d0efc1e36ac3e45474ce1871b6b2.tar.gz linux-92c7e00254b2d0efc1e36ac3e45474ce1871b6b2.tar.bz2 linux-92c7e00254b2d0efc1e36ac3e45474ce1871b6b2.zip |
[PATCH] Simplify the registration of clocksources
Enqueue clocksources in rating order to make selection of the clocksource
easier. Also check the match with an user override at enqueue time.
Preparatory patch for the generic clocksource verification.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: john stultz <johnstul@us.ibm.com>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/clocksource.h')
-rw-r--r-- | include/linux/clocksource.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index 1622d23a8dc3..55d714052374 100644 --- a/include/linux/clocksource.h +++ b/include/linux/clocksource.h @@ -178,8 +178,8 @@ static inline void clocksource_calculate_interval(struct clocksource *c, /* used to install a new clocksource */ -int clocksource_register(struct clocksource*); -void clocksource_reselect(void); -struct clocksource* clocksource_get_next(void); +extern int clocksource_register(struct clocksource*); +extern struct clocksource* clocksource_get_next(void); +extern void clocksource_change_rating(struct clocksource *cs, int rating); #endif /* _LINUX_CLOCKSOURCE_H */ |