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

Suggested by:	Jung-uk Kim
This commit is contained in:
Nate Lawson 2005-02-26 22:09:05 +00:00
parent 0221396473
commit f81de92f96
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=142587

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