2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

Add the coretemp driver userspace support.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4214 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Rudolf Marek
2006-10-15 19:26:10 +00:00
parent b2739867fc
commit 2b3d98a880
7 changed files with 60 additions and 0 deletions

View File

@@ -1848,6 +1848,11 @@ $chip_kern26_w83791d = {
driver => "k8temp",
detect => sub { k8temp_pci_detect(); },
},
{
name => "Intel Core family thermal sensor",
driver => "coretemp",
detect => sub { coretemp_detect(); },
},
);
#######################
@@ -5124,6 +5129,20 @@ sub k8temp_pci_detect
return 9;
}
# Returns: undef if not detected, (9) if detected.
sub coretemp_detect
{
my $probecpu;
foreach $probecpu (@cpu) {
if ($probecpu->{'vendor_id'} eq 'GenuineIntel' &&
$probecpu->{'cpu family'} == 6 &&
($probecpu->{'model'} == 14 ||
$probecpu->{'model'} == 15)) {
return 9;
}
}
return;
}
################
# MAIN PROGRAM #