diff options
author | njl <njl@FreeBSD.org> | 2005-02-20 23:41:20 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2005-02-20 23:41:20 +0000 |
commit | 2106f5124c0853e2d6f42c64ae8e90e930b01287 (patch) | |
tree | e616353a5944beafae2229bc16a55629d00f927f /sys/dev/cpufreq | |
parent | 09cb31f04d3318158b9b114233dbb5a5aa9732db (diff) | |
download | FreeBSD-src-2106f5124c0853e2d6f42c64ae8e90e930b01287.zip FreeBSD-src-2106f5124c0853e2d6f42c64ae8e90e930b01287.tar.gz |
Don't attach ichss if est is present. On systems that seem to support both,
the multi-setting EST is preferable.
Diffstat (limited to 'sys/dev/cpufreq')
-rw-r--r-- | sys/dev/cpufreq/ichss.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/cpufreq/ichss.c b/sys/dev/cpufreq/ichss.c index d04c650..1f3194a 100644 --- a/sys/dev/cpufreq/ichss.c +++ b/sys/dev/cpufreq/ichss.c @@ -211,12 +211,13 @@ ichss_pci_probe(device_t dev) static int ichss_probe(device_t dev) { - device_t perf_dev; + device_t est_dev, perf_dev; int error, type; /* * If the ACPI perf driver has attached and is not just offering - * info, let it manage things. + * info, let it manage things. Also, if Enhanced SpeedStep is + * available, don't attach. */ perf_dev = device_find_child(device_get_parent(dev), "acpi_perf", -1); if (perf_dev && device_is_attached(perf_dev)) { @@ -224,6 +225,9 @@ ichss_probe(device_t dev) if (error == 0 && (type & CPUFREQ_FLAG_INFO_ONLY) == 0) return (ENXIO); } + est_dev = device_find_child(device_get_parent(dev), "est", -1); + if (est_dev && device_is_attached(est_dev)) + return (ENXIO); device_set_desc(dev, "SpeedStep ICH"); return (-1000); |