summaryrefslogtreecommitdiffstats
path: root/sys/x86/pci
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2010-08-25 20:37:58 +0000
committerjhb <jhb@FreeBSD.org>2010-08-25 20:37:58 +0000
commit07e59b2937d1dccc43050de9229ba43337e16390 (patch)
treef6b15ad7d67a1c8ff67d3932244a2171201e4de7 /sys/x86/pci
parent4db720c0bebfd28c39e623873d0c5a406956ec17 (diff)
downloadFreeBSD-src-07e59b2937d1dccc43050de9229ba43337e16390.zip
FreeBSD-src-07e59b2937d1dccc43050de9229ba43337e16390.tar.gz
Correctly ensure that the CPU family is 0x6, not non-zero.
Submitted by: Dimitry Andric
Diffstat (limited to 'sys/x86/pci')
-rw-r--r--sys/x86/pci/qpi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/x86/pci/qpi.c b/sys/x86/pci/qpi.c
index 570f913..169c1cd 100644
--- a/sys/x86/pci/qpi.c
+++ b/sys/x86/pci/qpi.c
@@ -62,7 +62,8 @@ qpi_identify(driver_t *driver, device_t parent)
{
/* Check CPUID to ensure this is an i7 CPU of some sort. */
- if (!(cpu_vendor_id == CPU_VENDOR_INTEL && CPUID_TO_FAMILY(cpu_id) &&
+ if (!(cpu_vendor_id == CPU_VENDOR_INTEL &&
+ CPUID_TO_FAMILY(cpu_id) == 0x6 &&
(CPUID_TO_MODEL(cpu_id) == 0x1a || CPUID_TO_MODEL(cpu_id) == 0x2c)))
return;
OpenPOWER on IntegriCloud