Procházet zdrojové kódy

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>
Thomas Gleixner před 17 roky
rodič
revize
0748aca6f0
1 změnil soubory, kde provedl 2 přidání a 4 odebrání
  1. 2 4
      arch/x86/kernel/tsc_32.c

+ 2 - 4
arch/x86/kernel/tsc_32.c

@@ -283,7 +283,6 @@ core_initcall(cpufreq_tsc);
 
 
 /* clock source code */
 /* clock source code */
 
 
-static unsigned long current_tsc_khz;
 static struct clocksource clocksource_tsc;
 static struct clocksource clocksource_tsc;
 
 
 /*
 /*
@@ -434,9 +433,8 @@ void __init tsc_init(void)
 
 
 	unsynchronized_tsc();
 	unsynchronized_tsc();
 	check_geode_tsc_reliable();
 	check_geode_tsc_reliable();
-	current_tsc_khz = tsc_khz;
-	clocksource_tsc.mult = clocksource_khz2mult(current_tsc_khz,
-							clocksource_tsc.shift);
+	clocksource_tsc.mult = clocksource_khz2mult(tsc_khz,
+						    clocksource_tsc.shift);
 	/* lower the rating if we already know its unstable: */
 	/* lower the rating if we already know its unstable: */
 	if (check_tsc_unstable()) {
 	if (check_tsc_unstable()) {
 		clocksource_tsc.rating = 0;
 		clocksource_tsc.rating = 0;