aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/tsc.c
diff options
context:
space:
mode:
authorjohn stultz <johnstul@us.ibm.com>2006-06-26 03:25:11 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-26 12:58:21 -0400
commit6f84fa2f3edc8902cfed02cd510c7c58334bb9bd (patch)
treeafc4229a3ff0aa7e9956759334b7ad1f1b4827d9 /arch/i386/kernel/tsc.c
parent539eb11e6e904f2cd4f62908cc5e44d724879721 (diff)
[PATCH] Time: i386 Conversion - part 3: Enable Generic Timekeeping
This converts the i386 arch to use the generic timeofday subsystem. It enabled the GENERIC_TIME option, disables the timer_opts code and other arch specific timekeeping code and reworks the delay code. While this patch enables the generic timekeeping, please note that this patch does not provide any i386 clocksource. Thus only the jiffies clocksource will be available. To get full replacements for the code being disabled here, the timeofday-clocks-i386 patch will needed. Signed-off-by: John Stultz <johnstul@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/kernel/tsc.c')
-rw-r--r--arch/i386/kernel/tsc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/i386/kernel/tsc.c b/arch/i386/kernel/tsc.c
index 3b64eaafce2b..96b307495e5f 100644
--- a/arch/i386/kernel/tsc.c
+++ b/arch/i386/kernel/tsc.c
@@ -10,6 +10,7 @@
10#include <linux/init.h> 10#include <linux/init.h>
11 11
12#include <asm/tsc.h> 12#include <asm/tsc.h>
13#include <asm/delay.h>
13#include <asm/io.h> 14#include <asm/io.h>
14 15
15#include "mach_timer.h" 16#include "mach_timer.h"
@@ -45,7 +46,6 @@ static int __init tsc_setup(char *str)
45 46
46__setup("notsc", tsc_setup); 47__setup("notsc", tsc_setup);
47 48
48
49/* 49/*
50 * code to mark and check if the TSC is unstable 50 * code to mark and check if the TSC is unstable
51 * due to cpufreq or due to unsynced TSCs 51 * due to cpufreq or due to unsynced TSCs
@@ -205,6 +205,7 @@ void tsc_init(void)
205 (unsigned long)cpu_khz % 1000); 205 (unsigned long)cpu_khz % 1000);
206 206
207 set_cyc2ns_scale(cpu_khz); 207 set_cyc2ns_scale(cpu_khz);
208 use_tsc_delay();
208} 209}
209 210
210#ifdef CONFIG_CPU_FREQ 211#ifdef CONFIG_CPU_FREQ