Unbreak in the case when device apic is compiled into non-SMP kernel.

Reported by:	jhay
MFC after:	2 weeks
This commit is contained in:
sobomax 2006-09-06 22:05:34 +00:00
parent 27f742341b
commit 55dc203a73
2 changed files with 4 additions and 0 deletions

View File

@ -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)];

View File

@ -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)];