summaryrefslogtreecommitdiff
path: root/sys/dev/coretemp
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2009-06-30 17:10:08 +0000
committerAndriy Gapon <avg@FreeBSD.org>2009-06-30 17:10:08 +0000
commit335e19a19691303b03e39819ea6a7ff6ba9fb28c (patch)
tree72b308682950c938327f5cf86677441416728dbd /sys/dev/coretemp
parentf685b8df51dc1c6156725ef177de14b02b527983 (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 2ee4bbfd332f..36e6e8a0e474 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