mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-05 08:45:26 +00:00
Add VIA C7 detection. Patch from Juerg Haefliger.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5288 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -2104,6 +2104,11 @@ use vars qw(@chip_kern24_ids @chip_kern26_ids
|
||||
driver => "to-be-written",
|
||||
detect => sub { intel_amb_detect(); },
|
||||
},
|
||||
{
|
||||
name => "VIA C7 thermal and voltage sensors",
|
||||
driver => "c7temp",
|
||||
detect => sub { c7temp_detect(); },
|
||||
},
|
||||
);
|
||||
|
||||
#######################
|
||||
@@ -5597,6 +5602,21 @@ sub coretemp_detect
|
||||
return;
|
||||
}
|
||||
|
||||
# Returns: undef if not detected, (9) if detected.
|
||||
sub c7temp_detect
|
||||
{
|
||||
my $probecpu;
|
||||
foreach $probecpu (@cpu) {
|
||||
if ($probecpu->{'vendor_id'} eq 'CentaurHauls' &&
|
||||
$probecpu->{'cpu family'} == 6 &&
|
||||
($probecpu->{'model'} == 0xa ||
|
||||
$probecpu->{'model'} == 0xd)) {
|
||||
return 9;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
################
|
||||
# MAIN PROGRAM #
|
||||
################
|
||||
|
Reference in New Issue
Block a user