diff options
author | sobomax <sobomax@FreeBSD.org> | 2006-09-06 22:05:34 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2006-09-06 22:05:34 +0000 |
commit | 55dc203a73ebf4a1c91b30e5dc468700df02d68b (patch) | |
tree | 8fc00c1d13da9a37ffa6dc0c8a5e9efa5ac5ccfe /sys/i386 | |
parent | 27f742341b8ef59cde95e6ea310c9edc4f791b68 (diff) | |
download | FreeBSD-src-55dc203a73ebf4a1c91b30e5dc468700df02d68b.zip FreeBSD-src-55dc203a73ebf4a1c91b30e5dc468700df02d68b.tar.gz |
Unbreak in the case when device apic is compiled into non-SMP kernel.
Reported by: jhay
MFC after: 2 weeks
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/local_apic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/i386/i386/local_apic.c b/sys/i386/i386/local_apic.c index c50f405..400bc29 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)]; |