summaryrefslogtreecommitdiffstats
path: root/sys/x86
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-10-22 03:41:14 +0000
committereadler <eadler@FreeBSD.org>2012-10-22 03:41:14 +0000
commitbc26a2b3b0044c0e7082cedf29b4b76a8cbc3185 (patch)
tree170a58f7db6c673c79f71ba7f0ca237a68dc273b /sys/x86
parent7f780401e5c89cc3329023acb7b24d9538e90ed4 (diff)
downloadFreeBSD-src-bc26a2b3b0044c0e7082cedf29b4b76a8cbc3185.zip
FreeBSD-src-bc26a2b3b0044c0e7082cedf29b4b76a8cbc3185.tar.gz
Now that device disabling is generic, remove extraneous code from the
device drivers that used to provide this feature. Reviewed by: des Approved by: cperciva MFC after: 1 week
Diffstat (limited to 'sys/x86')
-rw-r--r--sys/x86/cpufreq/est.c3
-rw-r--r--sys/x86/cpufreq/p4tcc.c4
-rw-r--r--sys/x86/isa/elcr.c2
3 files changed, 0 insertions, 9 deletions
diff --git a/sys/x86/cpufreq/est.c b/sys/x86/cpufreq/est.c
index cc9502d..41660cb 100644
--- a/sys/x86/cpufreq/est.c
+++ b/sys/x86/cpufreq/est.c
@@ -991,9 +991,6 @@ est_probe(device_t 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
* info, let it manage things.
diff --git a/sys/x86/cpufreq/p4tcc.c b/sys/x86/cpufreq/p4tcc.c
index e11b4a8..4e37def 100644
--- a/sys/x86/cpufreq/p4tcc.c
+++ b/sys/x86/cpufreq/p4tcc.c
@@ -139,10 +139,6 @@ p4tcc_identify(driver_t *driver, device_t parent)
static int
p4tcc_probe(device_t dev)
{
-
- if (resource_disabled("p4tcc", 0))
- return (ENXIO);
-
device_set_desc(dev, "CPU Frequency Thermal Control");
return (0);
}
diff --git a/sys/x86/isa/elcr.c b/sys/x86/isa/elcr.c
index 266d783..ec457bc 100644
--- a/sys/x86/isa/elcr.c
+++ b/sys/x86/isa/elcr.c
@@ -84,8 +84,6 @@ elcr_probe(void)
printf(" E");
printf("\n");
}
- if (resource_disabled("elcr", 0))
- return (ENXIO);
elcr_found = 1;
return (0);
}
OpenPOWER on IntegriCloud