Change the check for cpu_high to actually match CPUID 0x06.

Submitted by:	Arthur Hartwig <arthur.hartwig at nokia.com>
PR:		122878
MFC after:	3 days
This commit is contained in:
Rui Paulo 2008-05-11 23:17:57 +00:00
parent 563f8fc088
commit 3684e5b004
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178950

View file

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2007 Rui Paulo <rpaulo@FreeBSD.org>
* Copyright (c) 2007, 2008 Rui Paulo <rpaulo@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -96,8 +96,8 @@ coretemp_identify(driver_t *driver, device_t parent)
if (device_find_child(parent, "coretemp", -1) != NULL)
return;
/* Check that CPUID is supported and the vendor is Intel.*/
if (cpu_high == 0 || strcmp(cpu_vendor, "GenuineIntel"))
/* Check that CPUID 0x06 is supported and the vendor is Intel.*/
if (cpu_high < 6 || strcmp(cpu_vendor, "GenuineIntel"))
return;
/*
* CPUID 0x06 returns 1 if the processor has on-die thermal