[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>
This commit is contained in:

committed by
Linus Torvalds

parent
539eb11e6e
commit
6f84fa2f3e
@@ -10,6 +10,7 @@
|
||||
#include <linux/init.h>
|
||||
|
||||
#include <asm/tsc.h>
|
||||
#include <asm/delay.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
#include "mach_timer.h"
|
||||
@@ -45,7 +46,6 @@ static int __init tsc_setup(char *str)
|
||||
|
||||
__setup("notsc", tsc_setup);
|
||||
|
||||
|
||||
/*
|
||||
* code to mark and check if the TSC is unstable
|
||||
* due to cpufreq or due to unsynced TSCs
|
||||
@@ -205,6 +205,7 @@ void tsc_init(void)
|
||||
(unsigned long)cpu_khz % 1000);
|
||||
|
||||
set_cyc2ns_scale(cpu_khz);
|
||||
use_tsc_delay();
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CPU_FREQ
|
||||
|
Reference in New Issue
Block a user