summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/i386/i386/tsc.c6
-rw-r--r--sys/i386/include/clock.h1
-rw-r--r--sys/i386/isa/clock.c1
-rw-r--r--sys/isa/atrtc.c1
4 files changed, 9 insertions, 0 deletions
diff --git a/sys/i386/i386/tsc.c b/sys/i386/i386/tsc.c
index a2e7f6a..4dc1861 100644
--- a/sys/i386/i386/tsc.c
+++ b/sys/i386/i386/tsc.c
@@ -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
diff --git a/sys/i386/include/clock.h b/sys/i386/include/clock.h
index 5ae4fb2..74625c6 100644
--- a/sys/i386/include/clock.h
+++ b/sys/i386/include/clock.h
@@ -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 */
diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c
index 42888aa..73c2fa4 100644
--- a/sys/i386/isa/clock.c
+++ b/sys/i386/isa/clock.c
@@ -1057,6 +1057,7 @@ cpu_initclocks()
"routing 8254 via 8259 and IOAPIC #0 intpin 0\n");
#endif
+ init_TSC_tc();
}
#ifdef APIC_IO
diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c
index 42888aa..73c2fa4 100644
--- a/sys/isa/atrtc.c
+++ b/sys/isa/atrtc.c
@@ -1057,6 +1057,7 @@ cpu_initclocks()
"routing 8254 via 8259 and IOAPIC #0 intpin 0\n");
#endif
+ init_TSC_tc();
}
#ifdef APIC_IO
OpenPOWER on IntegriCloud