aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/tsc_32.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-05-13 04:34:20 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-22 12:34:40 -0400
commit0748aca6f0af917591dcfd70dccac770a25d4f71 (patch)
tree9ddcb0a6b37f09e00d5da9835488c455d691cb8d /arch/x86/kernel/tsc_32.c
parent7c4728f4a865067d96fb84f1d9c65e0ccd1f355d (diff)
x86: remove useless static current_tsc_khz variable
current_tsc_khz is just written by the init code and never used again. Remove it. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/tsc_32.c')
-rw-r--r--arch/x86/kernel/tsc_32.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/x86/kernel/tsc_32.c b/arch/x86/kernel/tsc_32.c
index e4790728b224..d53b1040cbb7 100644
--- a/arch/x86/kernel/tsc_32.c
+++ b/arch/x86/kernel/tsc_32.c
@@ -283,7 +283,6 @@ core_initcall(cpufreq_tsc);
283 283
284/* clock source code */ 284/* clock source code */
285 285
286static unsigned long current_tsc_khz;
287static struct clocksource clocksource_tsc; 286static struct clocksource clocksource_tsc;
288 287
289/* 288/*
@@ -434,9 +433,8 @@ void __init tsc_init(void)
434 433
435 unsynchronized_tsc(); 434 unsynchronized_tsc();
436 check_geode_tsc_reliable(); 435 check_geode_tsc_reliable();
437 current_tsc_khz = tsc_khz; 436 clocksource_tsc.mult = clocksource_khz2mult(tsc_khz,
438 clocksource_tsc.mult = clocksource_khz2mult(current_tsc_khz, 437 clocksource_tsc.shift);
439 clocksource_tsc.shift);
440 /* lower the rating if we already know its unstable: */ 438 /* lower the rating if we already know its unstable: */
441 if (check_tsc_unstable()) { 439 if (check_tsc_unstable()) {
442 clocksource_tsc.rating = 0; 440 clocksource_tsc.rating = 0;