diff options
| author | Thomas Gleixner <[email protected]> | 2007-02-16 01:27:33 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-02-16 08:13:57 -0800 |
| 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 <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: john stultz <[email protected]>
Cc: Roman Zippel <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
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 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 */ |