MFC r1.6
Don't attach to non Core CPUs. This is needed because on the PIII, querying the number of sensors returns > 0. PR: 120541 Approved by: njl (mentor)
This commit is contained in:
parent
206cf3cffc
commit
900b7141f6
@ -143,6 +143,15 @@ coretemp_attach(device_t dev)
|
||||
cpu_model += ((cpu_id >> 16) & 0xf) << 4;
|
||||
cpu_mask = cpu_id & 15;
|
||||
|
||||
/*
|
||||
* Some CPUs, namely the PIII, don't have thermal sensors, but
|
||||
* report them when the CPUID check is performed in
|
||||
* coretemp_identify(). This leads to a later GPF when the sensor
|
||||
* is queried via a MSR, so we stop here.
|
||||
*/
|
||||
if (cpu_model < 0xe)
|
||||
return (ENXIO);
|
||||
|
||||
/*
|
||||
* Check for errata AE18.
|
||||
* "Processor Digital Thermal Sensor (DTS) Readout stops
|
||||
|
Loading…
x
Reference in New Issue
Block a user