From owner-svn-src-all@FreeBSD.ORG Wed Aug 25 20:37:58 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E239106567A; Wed, 25 Aug 2010 20:37:58 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5DC5F8FC16; Wed, 25 Aug 2010 20:37:58 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o7PKbwU9021820; Wed, 25 Aug 2010 20:37:58 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o7PKbwoY021818; Wed, 25 Aug 2010 20:37:58 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201008252037.o7PKbwoY021818@svn.freebsd.org> From: John Baldwin Date: Wed, 25 Aug 2010 20:37:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r211821 - head/sys/x86/pci X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 20:37:58 -0000 Author: jhb Date: Wed Aug 25 20:37:58 2010 New Revision: 211821 URL: http://svn.freebsd.org/changeset/base/211821 Log: Correctly ensure that the CPU family is 0x6, not non-zero. Submitted by: Dimitry Andric Modified: head/sys/x86/pci/qpi.c Modified: head/sys/x86/pci/qpi.c ============================================================================== --- head/sys/x86/pci/qpi.c Wed Aug 25 19:12:05 2010 (r211820) +++ head/sys/x86/pci/qpi.c Wed Aug 25 20:37:58 2010 (r211821) @@ -62,7 +62,8 @@ qpi_identify(driver_t *driver, device_t { /* 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;