diff options
author | njl <njl@FreeBSD.org> | 2005-02-26 22:09:05 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2005-02-26 22:09:05 +0000 |
commit | 3bf54fe8481e04697d54f5b5c136c55185115029 (patch) | |
tree | 18e58cf1210a2a4a4f43c808e2f5391e1d310290 /sys | |
parent | 39d7d1307a739fbabc3f266deb745bdff7a6873f (diff) | |
download | FreeBSD-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.c | 3 |
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); } |