aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/coretemp
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2008-11-26 19:25:13 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2008-11-26 19:25:13 +0000
commit5113aa0af3c6587b45ea08a11568e4ce661a9ce0 (patch)
treef69ac60d4b54cb78db2c5136bf0599564ba0d80a /sys/dev/coretemp
parent54dd5ca200ebd3bf39ed8c7cf5166580944bd9c2 (diff)
Notes
Diffstat (limited to 'sys/dev/coretemp')
-rw-r--r--sys/dev/coretemp/coretemp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/coretemp/coretemp.c b/sys/dev/coretemp/coretemp.c
index ffd236972dcf..d639eec59fd4 100644
--- a/sys/dev/coretemp/coretemp.c
+++ b/sys/dev/coretemp/coretemp.c
@@ -45,6 +45,7 @@ __FBSDID("$FreeBSD$");
#include <machine/specialreg.h>
#include <machine/cpufunc.h>
+#include <machine/cputypes.h>
#include <machine/md_var.h>
struct coretemp_softc {
@@ -94,7 +95,7 @@ coretemp_identify(driver_t *driver, device_t parent)
return;
/* Check that CPUID 0x06 is supported and the vendor is Intel.*/
- if (cpu_high < 6 || strcmp(cpu_vendor, "GenuineIntel"))
+ if (cpu_high < 6 || cpu_vendor_id != CPU_VENDOR_INTEL)
return;
/*
* CPUID 0x06 returns 1 if the processor has on-die thermal