diff options
author | njl <njl@FreeBSD.org> | 2005-02-22 06:31:45 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2005-02-22 06:31:45 +0000 |
commit | 7cb8584285d7b23026713439d4c82d55c6d92934 (patch) | |
tree | 782565ce37aa8fcc89e980f149e2fb67f53e9cf1 /sys/dev/cpufreq | |
parent | a5596d15387de6beacbfb7c7f96e1e21ce9c2556 (diff) | |
download | FreeBSD-src-7cb8584285d7b23026713439d4c82d55c6d92934.zip FreeBSD-src-7cb8584285d7b23026713439d4c82d55c6d92934.tar.gz |
Support disabling individual cpufreq drivers with hints, e.g.,
hint.ichss.0.disabled="1"
Diffstat (limited to 'sys/dev/cpufreq')
-rw-r--r-- | sys/dev/cpufreq/ichss.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/cpufreq/ichss.c b/sys/dev/cpufreq/ichss.c index 1f3194a..b8d3542 100644 --- a/sys/dev/cpufreq/ichss.c +++ b/sys/dev/cpufreq/ichss.c @@ -214,6 +214,9 @@ ichss_probe(device_t dev) device_t est_dev, perf_dev; int error, type; + if (resource_disabled("ichss", 0)) + return (ENXIO); + /* * If the ACPI perf driver has attached and is not just offering * info, let it manage things. Also, if Enhanced SpeedStep is |