aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2007-02-16 04:27:33 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-16 11:13:57 -0500
commit92c7e00254b2d0efc1e36ac3e45474ce1871b6b2 (patch)
tree9314279ec92bbbe57ac79667860b49d4df6c12cd /include
parent26a08eb301a2e3fce5a501e3dd26cf3ec46591d7 (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')
-rw-r--r--include/linux/clocksource.h6
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,
178 178
179 179
180/* used to install a new clocksource */ 180/* used to install a new clocksource */
181int clocksource_register(struct clocksource*); 181extern int clocksource_register(struct clocksource*);
182void clocksource_reselect(void); 182extern struct clocksource* clocksource_get_next(void);
183struct clocksource* clocksource_get_next(void); 183extern void clocksource_change_rating(struct clocksource *cs, int rating);
184 184
185#endif /* _LINUX_CLOCKSOURCE_H */ 185#endif /* _LINUX_CLOCKSOURCE_H */