Changeset 5813

Show
Ignore:
Timestamp:
12/17/09 11:01:14 (3 years ago)
Author:
khali
Message:

More AMD family 10h CPU models with broken thermal sensors.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/detect/sensors-detect

    r5812 r5813  
    53915391        # Errata 319 (Inaccurate Temperature Measurement) affects 
    53925392        # revisions DR-BA, DR-B2 and DR-B3, all have model number = 2. 
    5393         # So we only pick CPU with model number > 2. 
     5393        # Revisions RB-C2 and HY-D0 are also affected. 
    53945394        my $probecpu; 
    53955395        foreach $probecpu (@cpu) { 
    5396                 if ($probecpu->{vendor_id} eq 'AuthenticAMD' && 
    5397                                 $probecpu->{'cpu family'} == 0x10 && 
    5398                                 $probecpu->{model} > 2) { 
    5399                         return 9; 
    5400                 } 
     5396                next unless $probecpu->{vendor_id} eq 'AuthenticAMD' && 
     5397                            $probecpu->{'cpu family'} == 0x10; 
     5398 
     5399                next if $probecpu->{model} == 2;        # DR-B* 
     5400                next if $probecpu->{model} == 4 && 
     5401                        $probecpu->{stepping} <= 2;     # RB-C2 
     5402                next if $probecpu->{model} == 8;        # HY-D0 
     5403 
     5404                return 9; 
    54015405        } 
    54025406