summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2005-02-26 22:09:05 +0000
committernjl <njl@FreeBSD.org>2005-02-26 22:09:05 +0000
commit3bf54fe8481e04697d54f5b5c136c55185115029 (patch)
tree18e58cf1210a2a4a4f43c808e2f5391e1d310290 /sys
parent39d7d1307a739fbabc3f266deb745bdff7a6873f (diff)
downloadFreeBSD-src-3bf54fe8481e04697d54f5b5c136c55185115029.zip
FreeBSD-src-3bf54fe8481e04697d54f5b5c136c55185115029.tar.gz
Don't bother with cpufreq_register if we're info-only.
Suggested by: Jung-uk Kim
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/acpica/acpi_perf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_perf.c b/sys/dev/acpica/acpi_perf.c
index a570e44..2307000 100644
--- a/sys/dev/acpica/acpi_perf.c
+++ b/sys/dev/acpica/acpi_perf.c
@@ -211,8 +211,9 @@ acpi_perf_attach(device_t dev)
sc->px_curr_state = CPUFREQ_VAL_UNKNOWN;
if (acpi_perf_evaluate(dev) != 0)
return (ENXIO);
- cpufreq_register(dev);
AcpiOsQueueForExecution(OSD_PRIORITY_LO, acpi_px_startup, NULL);
+ if (!sc->info_only)
+ cpufreq_register(dev);
return (0);
}
OpenPOWER on IntegriCloud