time: x86: Remove CLOCK_TICK_RATE from tsc code
authorDeepak Saxena <dsaxena@linaro.org>
Tue, 1 Nov 2011 21:25:07 +0000 (14:25 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 22 Nov 2011 03:00:56 +0000 (19:00 -0800)
The tsc code uses CLOCK_TICK_RATE which on x86
is defined to just be the same as PIT_TICK_RATE.
This patch updates the code use the later
as we want to depecrate and remove the global
CLOCK_TICK_RATE symbol.

Signed-off-by: Deepak Saxena <dsaxena@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
arch/x86/kernel/tsc.c

index db483369f10be5c07bfe8564a1a073c34ffb22fb..1e88c8ef6d6dafe3e55c2e275e389108c437def3 100644 (file)
@@ -178,11 +178,11 @@ static unsigned long calc_pmtimer_ref(u64 deltatsc, u64 pm1, u64 pm2)
 }
 
 #define CAL_MS         10
-#define CAL_LATCH      (CLOCK_TICK_RATE / (1000 / CAL_MS))
+#define CAL_LATCH      (PIT_TICK_RATE / (1000 / CAL_MS))
 #define CAL_PIT_LOOPS  1000
 
 #define CAL2_MS                50
-#define CAL2_LATCH     (CLOCK_TICK_RATE / (1000 / CAL2_MS))
+#define CAL2_LATCH     (PIT_TICK_RATE / (1000 / CAL2_MS))
 #define CAL2_PIT_LOOPS 5000
 
 
This page took 0.026518 seconds and 5 git commands to generate.