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:
parent
27f742341b
commit
55dc203a73
@ -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)];
|
||||
|
@ -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)];
|
||||
|
Loading…
Reference in New Issue
Block a user