patch-2.3.99-pre1 linux/arch/i386/kernel/time.c
Next file: linux/arch/i386/lib/delay.c
Previous file: linux/arch/i386/kernel/setup.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Sun Mar 12 19:39:47 2000
- Orig file:
v2.3.51/linux/arch/i386/kernel/time.c
- Orig date:
Fri Jan 21 18:19:16 2000
diff -u --recursive --new-file v2.3.51/linux/arch/i386/kernel/time.c linux/arch/i386/kernel/time.c
@@ -615,6 +615,8 @@
void __init time_init(void)
{
+ extern int x86_udelay_tsc;
+
xtime.tv_sec = get_cmos_time();
xtime.tv_usec = 0;
@@ -650,6 +652,11 @@
if (tsc_quotient) {
fast_gettimeoffset_quotient = tsc_quotient;
use_tsc = 1;
+ /*
+ * We could be more selective here I suspect
+ * and just enable this for the next intel chips ?
+ */
+ x86_udelay_tsc = 1;
#ifndef do_gettimeoffset
do_gettimeoffset = do_fast_gettimeoffset;
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)