From 0dc1b976eb96fc6fa7fd78ce27e312385e4b9340 Mon Sep 17 00:00:00 2001 From: Nate Lawson Date: Tue, 22 Feb 2005 06:31:45 +0000 Subject: Support disabling individual cpufreq drivers with hints, e.g., hint.ichss.0.disabled="1" --- sys/dev/cpufreq/ichss.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/dev/cpufreq') diff --git a/sys/dev/cpufreq/ichss.c b/sys/dev/cpufreq/ichss.c index 1f3194a58495..b8d35421583e 100644 --- a/sys/dev/cpufreq/ichss.c +++ b/sys/dev/cpufreq/ichss.c @@ -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 -- cgit v1.3