From 3684e5b004f6fec94f52e38289d7f658ac1e457c Mon Sep 17 00:00:00 2001 From: Rui Paulo Date: Sun, 11 May 2008 23:17:57 +0000 Subject: [PATCH] Change the check for cpu_high to actually match CPUID 0x06. Submitted by: Arthur Hartwig PR: 122878 MFC after: 3 days --- sys/dev/coretemp/coretemp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/coretemp/coretemp.c b/sys/dev/coretemp/coretemp.c index 7bb7b636463f..eaa832365761 100644 --- a/sys/dev/coretemp/coretemp.c +++ b/sys/dev/coretemp/coretemp.c @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2007 Rui Paulo + * Copyright (c) 2007, 2008 Rui Paulo * 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