Only schedule interrupts on a single hyperthread of a modern Intel CPU core
by default. Previously we used a single hyperthread on Pentium4-era cores but used both hyperthreads on more recent CPUs. MFC after: 2 weeks
This commit is contained in:
parent
27fd173649
commit
0915f6f2ac
@ -828,8 +828,8 @@ set_interrupt_apic_ids(void)
|
||||
continue;
|
||||
|
||||
/* Don't let hyperthreads service interrupts. */
|
||||
if (hyperthreading_cpus > 1 &&
|
||||
apic_id % hyperthreading_cpus != 0)
|
||||
if (cpu_logical > 1 &&
|
||||
apic_id % cpu_logical != 0)
|
||||
continue;
|
||||
|
||||
intr_add_cpu(i);
|
||||
|
@ -842,8 +842,8 @@ set_interrupt_apic_ids(void)
|
||||
continue;
|
||||
|
||||
/* Don't let hyperthreads service interrupts. */
|
||||
if (hyperthreading_cpus > 1 &&
|
||||
apic_id % hyperthreading_cpus != 0)
|
||||
if (cpu_logical > 1 &&
|
||||
apic_id % cpu_logical != 0)
|
||||
continue;
|
||||
|
||||
intr_add_cpu(i);
|
||||
|
Loading…
Reference in New Issue
Block a user