diff options
author | John Baldwin <jhb@FreeBSD.org> | 2010-08-25 20:37:58 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2010-08-25 20:37:58 +0000 |
commit | 8bddaf900773c80269d0416da191e8b50ff695a3 (patch) | |
tree | f6b15ad7d67a1c8ff67d3932244a2171201e4de7 /sys/x86/pci | |
parent | c2175767b7029b6847ff6a435d6ab7720d8b4a08 (diff) | |
download | src-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.c | 3 |
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; |