summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2013-03-11 12:02:03 +0000
committermav <mav@FreeBSD.org>2013-03-11 12:02:03 +0000
commit9f5713a48c32281e2c79d0fec47f87e2be0beb19 (patch)
tree535bb5d37f3e29642a0241103d4e01697127d5f6 /sys/dev
parentbc04f839beee8a050a7425354a4dd381b9a7ca25 (diff)
downloadFreeBSD-src-9f5713a48c32281e2c79d0fec47f87e2be0beb19.zip
FreeBSD-src-9f5713a48c32281e2c79d0fec47f87e2be0beb19.tar.gz
Reduce HPET eventtimer priority on systems with 8 or more cores. Price of
the lock congestion may be too high there (2.5% on 4x4 core AMD Opteron).
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpica/acpi_hpet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_hpet.c b/sys/dev/acpica/acpi_hpet.c
index 9b9c966..b0cd3d8 100644
--- a/sys/dev/acpica/acpi_hpet.c
+++ b/sys/dev/acpica/acpi_hpet.c
@@ -675,7 +675,8 @@ hpet_attach(device_t dev)
if (t->pcpu_master >= 0) {
t->et.et_flags |= ET_FLAGS_PERCPU;
t->et.et_quality += 100;
- }
+ } if (mp_ncpus >= 8)
+ t->et.et_quality -= 100;
if ((t->caps & HPET_TCAP_PER_INT) == 0)
t->et.et_quality -= 10;
t->et.et_frequency = sc->freq;
OpenPOWER on IntegriCloud