diff options
| author | Andriy Gapon <avg@FreeBSD.org> | 2009-06-30 17:10:08 +0000 |
|---|---|---|
| committer | Andriy Gapon <avg@FreeBSD.org> | 2009-06-30 17:10:08 +0000 |
| commit | 335e19a19691303b03e39819ea6a7ff6ba9fb28c (patch) | |
| tree | 72b308682950c938327f5cf86677441416728dbd /sys/dev/coretemp | |
| parent | f685b8df51dc1c6156725ef177de14b02b527983 (diff) | |
Notes
Diffstat (limited to 'sys/dev/coretemp')
| -rw-r--r-- | sys/dev/coretemp/coretemp.c | 3 |
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 |
