diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2007-02-16 04:27:33 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-16 11:13:57 -0500 |
commit | 92c7e00254b2d0efc1e36ac3e45474ce1871b6b2 (patch) | |
tree | 9314279ec92bbbe57ac79667860b49d4df6c12cd /include/linux | |
parent | 26a08eb301a2e3fce5a501e3dd26cf3ec46591d7 (diff) |
[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')
-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 1622d23a8dc..55d71405237 100644 --- a/include/linux/clocksource.h +++ b/include/linux/clocksource.h | |||
@@ -178,8 +178,8 @@ static inline void clocksource_calculate_interval(struct clocksource *c, | |||
178 | 178 | ||
179 | 179 | ||
180 | /* used to install a new clocksource */ | 180 | /* used to install a new clocksource */ |
181 | int clocksource_register(struct clocksource*); | 181 | extern int clocksource_register(struct clocksource*); |
182 | void clocksource_reselect(void); | 182 | extern struct clocksource* clocksource_get_next(void); |
183 | struct clocksource* clocksource_get_next(void); | 183 | extern void clocksource_change_rating(struct clocksource *cs, int rating); |
184 | 184 | ||
185 | #endif /* _LINUX_CLOCKSOURCE_H */ | 185 | #endif /* _LINUX_CLOCKSOURCE_H */ |