summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2006-09-06 22:05:34 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2006-09-06 22:05:34 +0000
commite7d33dcbc5e250771aaf8f64821259fd26d7f7dc (patch)
tree8fc00c1d13da9a37ffa6dc0c8a5e9efa5ac5ccfe
parent86a93d51e3a5d0cf0abb7e76cc9f610955ad1bf0 (diff)
Notes
-rw-r--r--sys/amd64/amd64/local_apic.c2
-rw-r--r--sys/i386/i386/local_apic.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/amd64/amd64/local_apic.c b/sys/amd64/amd64/local_apic.c
index b248afa82fae..e012d0f12204 100644
--- a/sys/amd64/amd64/local_apic.c
+++ b/sys/amd64/amd64/local_apic.c
@@ -613,6 +613,7 @@ lapic_handle_timer(struct trapframe frame)
/* Send EOI first thing. */
lapic_eoi();
+#ifdef SMP
/*
* Don't do any accounting for the disabled HTT cores, since it
* will provide misleading numbers for the userland.
@@ -622,6 +623,7 @@ lapic_handle_timer(struct trapframe frame)
*/
if ((hlt_cpus_mask & (1 << PCPU_GET(cpuid))) != 0)
return;
+#endif
/* Look up our local APIC structure for the tick counters. */
la = &lapics[PCPU_GET(apic_id)];
diff --git a/sys/i386/i386/local_apic.c b/sys/i386/i386/local_apic.c
index c50f405ea96b..400bc2998328 100644
--- a/sys/i386/i386/local_apic.c
+++ b/sys/i386/i386/local_apic.c
@@ -615,6 +615,7 @@ lapic_handle_timer(struct trapframe frame)
/* Send EOI first thing. */
lapic_eoi();
+#ifdef SMP
/*
* Don't do any accounting for the disabled HTT cores, since it
* will provide misleading numbers for the userland.
@@ -624,6 +625,7 @@ lapic_handle_timer(struct trapframe frame)
*/
if ((hlt_cpus_mask & (1 << PCPU_GET(cpuid))) != 0)
return;
+#endif
/* Look up our local APIC structure for the tick counters. */
la = &lapics[PCPU_GET(apic_id)];