diff options
author | Nate Lawson <njl@FreeBSD.org> | 2005-02-22 06:31:45 +0000 |
---|---|---|
committer | Nate Lawson <njl@FreeBSD.org> | 2005-02-22 06:31:45 +0000 |
commit | 0dc1b976eb96fc6fa7fd78ce27e312385e4b9340 (patch) | |
tree | 782565ce37aa8fcc89e980f149e2fb67f53e9cf1 /sys/dev/acpica/acpi_perf.c | |
parent | b2948b72e9067eebe45b0eeac03b9d181cf028b3 (diff) | |
download | src-0dc1b976eb96fc6fa7fd78ce27e312385e4b9340.tar.gz src-0dc1b976eb96fc6fa7fd78ce27e312385e4b9340.zip |
Support disabling individual cpufreq drivers with hints, e.g.,
hint.ichss.0.disabled="1"
Notes
Notes:
svn path=/head/; revision=142203
Diffstat (limited to 'sys/dev/acpica/acpi_perf.c')
-rw-r--r-- | sys/dev/acpica/acpi_perf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_perf.c b/sys/dev/acpica/acpi_perf.c index 040f2d54c510..e7d2e8a597bf 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 |