Don't bother with cpufreq_register if we're info-only.

Suggested by:	Jung-uk Kim
This commit is contained in:
njl 2005-02-26 22:09:05 +00:00
parent 3f6c251a0f
commit 3cc482f20b

View File

@ -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);
}