Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

time: x86: Remove CLOCK_TICK_RATE from tsc code

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>

authored by

Deepak Saxena and committed by
John Stultz
b7743970 3f86f28f

+2 -2
+2 -2
arch/x86/kernel/tsc.c
··· 178 178 } 179 179 180 180 #define CAL_MS 10 181 - #define CAL_LATCH (CLOCK_TICK_RATE / (1000 / CAL_MS)) 181 + #define CAL_LATCH (PIT_TICK_RATE / (1000 / CAL_MS)) 182 182 #define CAL_PIT_LOOPS 1000 183 183 184 184 #define CAL2_MS 50 185 - #define CAL2_LATCH (CLOCK_TICK_RATE / (1000 / CAL2_MS)) 185 + #define CAL2_LATCH (PIT_TICK_RATE / (1000 / CAL2_MS)) 186 186 #define CAL2_PIT_LOOPS 5000 187 187 188 188