diff options
author | jhb <jhb@FreeBSD.org> | 2015-03-06 20:34:28 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2015-03-06 20:34:28 +0000 |
commit | c1c1fd8e25c2f573210bcdeaf7b58ea1f0d1c499 (patch) | |
tree | 2a2e2d744e35427840539548873f98594d922325 /sys/amd64/amd64/mp_machdep.c | |
parent | 58f62559c6a742c8a77be1c15944d8dd412d55a3 (diff) | |
download | FreeBSD-src-c1c1fd8e25c2f573210bcdeaf7b58ea1f0d1c499.zip FreeBSD-src-c1c1fd8e25c2f573210bcdeaf7b58ea1f0d1c499.tar.gz |
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
Diffstat (limited to 'sys/amd64/amd64/mp_machdep.c')
-rw-r--r-- | sys/amd64/amd64/mp_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c index b836b0d..59e339c 100644 --- a/sys/amd64/amd64/mp_machdep.c +++ b/sys/amd64/amd64/mp_machdep.c @@ -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); |