Page MenuHomeFreeBSD

D34830.diff
No OneTemporary

D34830.diff

diff --git a/sys/x86/isa/clock.c b/sys/x86/isa/clock.c
--- a/sys/x86/isa/clock.c
+++ b/sys/x86/isa/clock.c
@@ -42,6 +42,11 @@
* Routines to handle clock hardware.
*/
+#ifdef __amd64__
+#define DEV_APIC
+#else
+#include "opt_apic.h"
+#endif
#include "opt_clock.h"
#include "opt_isa.h"
@@ -415,7 +420,9 @@
td = curthread;
tsc_calibrate();
+#ifdef DEV_APIC
lapic_calibrate_timer();
+#endif
cpu_initclocks_bsp();
CPU_FOREACH(i) {
if (i == 0)
@@ -431,7 +438,9 @@
thread_unlock(td);
#else
tsc_calibrate();
+#ifdef DEV_APIC
lapic_calibrate_timer();
+#endif
cpu_initclocks_bsp();
#endif
}

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 6, 10:13 AM (11 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17012557
Default Alt Text
D34830.diff (618 B)

Event Timeline