aboutsummaryrefslogtreecommitdiff
path: root/sys/x86/pci
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2010-08-25 20:37:58 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2010-08-25 20:37:58 +0000
commit8bddaf900773c80269d0416da191e8b50ff695a3 (patch)
treef6b15ad7d67a1c8ff67d3932244a2171201e4de7 /sys/x86/pci
parentc2175767b7029b6847ff6a435d6ab7720d8b4a08 (diff)
downloadsrc-8bddaf900773c80269d0416da191e8b50ff695a3.tar.gz
src-8bddaf900773c80269d0416da191e8b50ff695a3.zip
Correctly ensure that the CPU family is 0x6, not non-zero.
Submitted by: Dimitry Andric
Notes
Notes: svn path=/head/; revision=211821
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 570f913e1619..169c1cd61021 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;