Support disabling individual cpufreq drivers with hints, e.g.,

hint.ichss.0.disabled="1"
This commit is contained in:
Nate Lawson 2005-02-22 06:31:45 +00:00
parent b2948b72e9
commit 0dc1b976eb
4 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -166,6 +166,9 @@ static int
acpi_throttle_probe(device_t dev)
{
if (resource_disabled("acpi_throttle", 0))
return (ENXIO);
device_set_desc(dev, "ACPI CPU Throttling");
return (0);
}

View File

@ -214,6 +214,9 @@ ichss_probe(device_t dev)
device_t est_dev, perf_dev;
int error, type;
if (resource_disabled("ichss", 0))
return (ENXIO);
/*
* If the ACPI perf driver has attached and is not just offering
* info, let it manage things. Also, if Enhanced SpeedStep is

View File

@ -593,6 +593,9 @@ est_probe(device_t dev)
device_t perf_dev;
uint64_t msr;
int error, type;
if (resource_disabled("est", 0))
return (ENXIO);
/*
* If the ACPI perf driver has attached and is not just offering