mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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>
This commit is contained in:
parent
26a08eb301
commit
92c7e00254
3 changed files with 61 additions and 66 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue