summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_perf.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2005-02-22 06:31:45 +0000
committernjl <njl@FreeBSD.org>2005-02-22 06:31:45 +0000
commit7cb8584285d7b23026713439d4c82d55c6d92934 (patch)
tree782565ce37aa8fcc89e980f149e2fb67f53e9cf1 /sys/dev/acpica/acpi_perf.c
parenta5596d15387de6beacbfb7c7f96e1e21ce9c2556 (diff)
downloadFreeBSD-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/acpi_perf.c')
-rw-r--r--sys/dev/acpica/acpi_perf.c3
1 files changed, 3 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
OpenPOWER on IntegriCloud