aboutsummaryrefslogtreecommitdiffstats
path: root/arch
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 /arch
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 'arch')
-rw-r--r--arch/i386/kernel/tsc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/i386/kernel/tsc.c b/arch/i386/kernel/tsc.c
index d4000649942a..6f6971da761c 100644
--- a/arch/i386/kernel/tsc.c
+++ b/arch/i386/kernel/tsc.c
@@ -323,8 +323,7 @@ static int tsc_update_callback(void)
323 323
324 /* check to see if we should switch to the safe clocksource: */ 324 /* check to see if we should switch to the safe clocksource: */
325 if (clocksource_tsc.rating != 0 && check_tsc_unstable()) { 325 if (clocksource_tsc.rating != 0 && check_tsc_unstable()) {
326 clocksource_tsc.rating = 0; 326 clocksource_change_rating(&clocksource_tsc, 0);
327 clocksource_reselect();
328 change = 1; 327 change = 1;
329 } 328 }
330 329