summaryrefslogtreecommitdiff
path: root/sys/dev/coretemp
diff options
context:
space:
mode:
authorRui Paulo <rpaulo@FreeBSD.org>2008-05-14 10:04:17 +0000
committerRui Paulo <rpaulo@FreeBSD.org>2008-05-14 10:04:17 +0000
commitbb134c884826274a43e3cc90a1d04028d7f5d824 (patch)
treee232220b694b0c12a1cc90920952538c2e027daa /sys/dev/coretemp
parentc6ce2c0c9d6e7887af853c039790a18b6c2777e4 (diff)
Notes
Diffstat (limited to 'sys/dev/coretemp')
-rw-r--r--sys/dev/coretemp/coretemp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/coretemp/coretemp.c b/sys/dev/coretemp/coretemp.c
index 93a2506d2c51..323b8365a5d2 100644
--- a/sys/dev/coretemp/coretemp.c
+++ b/sys/dev/coretemp/coretemp.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2007 Rui Paulo <rpaulo@FreeBSD.org>
+ * Copyright (c) 2007, 2008 Rui Paulo <rpaulo@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -96,8 +96,8 @@ coretemp_identify(driver_t *driver, device_t parent)
if (device_find_child(parent, "coretemp", -1) != NULL)
return;
- /* Check that CPUID is supported and the vendor is Intel.*/
- if (cpu_high == 0 || strcmp(cpu_vendor, "GenuineIntel"))
+ /* Check that CPUID 0x06 is supported and the vendor is Intel.*/
+ if (cpu_high < 6 || strcmp(cpu_vendor, "GenuineIntel"))
return;
/*
* CPUID 0x06 returns 1 if the processor has on-die thermal