diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2007-02-16 01:27:33 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-16 08:13:57 -0800 |
commit | 92c7e00254b2d0efc1e36ac3e45474ce1871b6b2 (patch) | |
tree | 9314279ec92bbbe57ac79667860b49d4df6c12cd /arch | |
parent | 26a08eb301a2e3fce5a501e3dd26cf3ec46591d7 (diff) | |
download | op-kernel-dev-92c7e00254b2d0efc1e36ac3e45474ce1871b6b2.zip op-kernel-dev-92c7e00254b2d0efc1e36ac3e45474ce1871b6b2.tar.gz |
[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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/i386/kernel/tsc.c b/arch/i386/kernel/tsc.c index d400064..6f6971d 100644 --- a/arch/i386/kernel/tsc.c +++ b/arch/i386/kernel/tsc.c @@ -323,8 +323,7 @@ static int tsc_update_callback(void) /* check to see if we should switch to the safe clocksource: */ if (clocksource_tsc.rating != 0 && check_tsc_unstable()) { - clocksource_tsc.rating = 0; - clocksource_reselect(); + clocksource_change_rating(&clocksource_tsc, 0); change = 1; } |