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/acpica | |
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/acpica')
-rw-r--r-- | sys/dev/acpica/acpi_perf.c | 3 | ||||
-rw-r--r-- | sys/dev/acpica/acpi_throttle.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_perf.c b/sys/dev/acpica/acpi_perf.c index 040f2d5..e7d2e8a 100644 --- a/sys/dev/acpica/acpi_perf.c +++ b/sys/dev/acpica/acpi_perf.c @@ -165,6 +165,9 @@ acpi_perf_probe(device_t dev) ACPI_BUFFER buf; int error, rid, type; + if (resource_disabled("acpi_perf", 0)) + return (ENXIO); + /* * Check the performance state registers. If they are of type * "functional fixed hardware", we attach quietly since we will diff --git a/sys/dev/acpica/acpi_throttle.c b/sys/dev/acpica/acpi_throttle.c index 6261eba..b736124 100644 --- a/sys/dev/acpica/acpi_throttle.c +++ b/sys/dev/acpica/acpi_throttle.c @@ -166,6 +166,9 @@ static int acpi_throttle_probe(device_t dev) { + if (resource_disabled("acpi_throttle", 0)) + return (ENXIO); + device_set_desc(dev, "ACPI CPU Throttling"); return (0); } |