From f387f95bae92b6640678df957628b43828fe8ed5 Mon Sep 17 00:00:00 2001 From: Rudolf Marek Date: Sun, 7 Oct 2007 18:31:16 +0000 Subject: [PATCH] Add detection of AMD K10 CPU sensor. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4925 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + prog/detect/sensors-detect | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGES b/CHANGES index f00533cb..30b9f540 100644 --- a/CHANGES +++ b/CHANGES @@ -15,6 +15,7 @@ SVN Better handling of the fault flags sensors-conf-convert: Add a short help text sensors-detect: Fix SMSC SCH311x detection + Add AMD K10 CPU sensor detection 3.0.0-rc1 (2007-09-25) Initial release diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 929d81b0..c1d42133 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -2082,6 +2082,11 @@ use vars qw(@chip_kern24_ids @chip_kern26_ids); driver => "k8temp", detect => sub { k8temp_pci_detect(); }, }, + { + name => "AMD K10 thermal sensors", + driver => "to-be-written", + detect => sub { k10temp_pci_detect(); }, + }, { name => "Intel Core family thermal sensor", driver => "coretemp", @@ -5357,6 +5362,12 @@ sub k8temp_pci_detect return 9; } +sub k10temp_pci_detect +{ + return unless exists $pci_list{'1022:1203'}; + return 9; +} + # Returns: undef if not detected, (9) if detected. # the device 0xa620 should not be visible on host PCI bus, gateway # must be used