aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/amdtemp
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2012-10-22 13:06:09 +0000
committerEitan Adler <eadler@FreeBSD.org>2012-10-22 13:06:09 +0000
commita8de37b0244d1101e634922d018579cc3073318f (patch)
tree07e19b18864f030899e170c445daf41bd547c6d1 /sys/dev/amdtemp
parent7994d24f0c2194c99c01a9f8b3c97b08b4984c46 (diff)
Notes
Diffstat (limited to 'sys/dev/amdtemp')
-rw-r--r--sys/dev/amdtemp/amdtemp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/amdtemp/amdtemp.c b/sys/dev/amdtemp/amdtemp.c
index 53714c6e297f..6d106aed0cb8 100644
--- a/sys/dev/amdtemp/amdtemp.c
+++ b/sys/dev/amdtemp/amdtemp.c
@@ -185,6 +185,9 @@ amdtemp_probe(device_t dev)
{
uint32_t family, model;
+ if (resource_disabled("amdtemp", 0))
+ return (ENXIO);
+
family = CPUID_TO_FAMILY(cpu_id);
model = CPUID_TO_MODEL(cpu_id);