Dont initialize a TSC timecounter until we know if it is broken or not.

This commit is contained in:
Poul-Henning Kamp 2003-08-06 15:05:27 +00:00
parent f9e4b94aac
commit 2fbc275447
4 changed files with 9 additions and 0 deletions

View File

@ -99,7 +99,13 @@ init_TSC(void)
if (mp_ncpus > 1 && !smp_tsc)
return;
#endif
return;
}
void
init_TSC_tc(void)
{
/*
* We can not use the TSC if we support APM. Precise timekeeping
* on an APM'ed machine is at best a fools pursuit, since

View File

@ -46,6 +46,7 @@ int release_timer1(void);
int sysbeep(int pitch, int period);
void timer_restore(void);
void init_TSC(void);
void init_TSC_tc(void);
#endif /* _KERNEL */

View File

@ -1057,6 +1057,7 @@ cpu_initclocks()
"routing 8254 via 8259 and IOAPIC #0 intpin 0\n");
#endif
init_TSC_tc();
}
#ifdef APIC_IO

View File

@ -1057,6 +1057,7 @@ cpu_initclocks()
"routing 8254 via 8259 and IOAPIC #0 intpin 0\n");
#endif
init_TSC_tc();
}
#ifdef APIC_IO