forked from luck/tmp_suning_uos_patched
cb84b19474
This patch adds a hwmon driver for package level thermal control. The driver dumps package level thermal information through sysfs interface so that upper level application (e.g. lm_sensor) can retrive the information. Instead of having the package level hwmon code in coretemp, I write a seperate driver pkgtemp because: First, package level thermal sensors include not only sensors for each core, but also sensors for uncore, memory controller or other components in the package. Logically it will be clear to have a seperate hwmon driver for package level hwmon to monitor wider range of sensors in a package. Merging package thermal driver into core thermal driver doesn't make sense and may mislead. Secondly, merging the two drivers together may cause coding mess. It's easier to include various package level sensors info if more sensor information is implemented. Coretemp code needs to consider a lot of legacy machine cases. Pkgtemp code only considers platform starting from Sandy Bridge. On a 1Sx4Cx2T Sandy Bridge platform, lm-sensors dumps the pkgtemp and coretemp: pkgtemp-isa-0000 Adapter: ISA adapter physical id 0: +33.0°C (high = +79.0°C, crit = +99.0°C) coretemp-isa-0000 Adapter: ISA adapter Core 0: +32.0°C (high = +79.0°C, crit = +99.0°C) coretemp-isa-0001 Adapter: ISA adapter Core 1: +32.0°C (high = +79.0°C, crit = +99.0°C) coretemp-isa-0002 Adapter: ISA adapter Core 2: +32.0°C (high = +79.0°C, crit = +99.0°C) coretemp-isa-0003 Adapter: ISA adapter Core 3: +32.0°C (high = +79.0°C, crit = +99.0°C) [ hpa: folded v3 patch removing improper global variable "SHOW" ] Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> LKML-Reference: <1280448826-12004-3-git-send-email-fenghua.yu@intel.com> Reviewed-by: Len Brown <len.brown@intel.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> |
||
---|---|---|
.. | ||
ams | ||
abituguru3.c | ||
abituguru.c | ||
ad7414.c | ||
ad7418.c | ||
adcxx.c | ||
adm1021.c | ||
adm1025.c | ||
adm1026.c | ||
adm1029.c | ||
adm1031.c | ||
adm9240.c | ||
ads7828.c | ||
ads7871.c | ||
adt7411.c | ||
adt7462.c | ||
adt7470.c | ||
adt7475.c | ||
amc6821.c | ||
applesmc.c | ||
asb100.c | ||
asc7621.c | ||
asus_atk0110.c | ||
atxp1.c | ||
coretemp.c | ||
dme1737.c | ||
ds1621.c | ||
emc1403.c | ||
f71805f.c | ||
f71882fg.c | ||
f75375s.c | ||
fschmd.c | ||
g760a.c | ||
gl518sm.c | ||
gl520sm.c | ||
hdaps.c | ||
hp_accel.c | ||
hwmon-vid.c | ||
hwmon.c | ||
i5k_amb.c | ||
ibmaem.c | ||
ibmpex.c | ||
it87.c | ||
k8temp.c | ||
k10temp.c | ||
Kconfig | ||
lis3lv02d_i2c.c | ||
lis3lv02d_spi.c | ||
lis3lv02d.c | ||
lis3lv02d.h | ||
lm63.c | ||
lm70.c | ||
lm73.c | ||
lm75.c | ||
lm75.h | ||
lm77.c | ||
lm78.c | ||
lm80.c | ||
lm83.c | ||
lm85.c | ||
lm87.c | ||
lm90.c | ||
lm92.c | ||
lm93.c | ||
lm95241.c | ||
ltc4215.c | ||
ltc4245.c | ||
Makefile | ||
max1111.c | ||
max1619.c | ||
max6650.c | ||
mc13783-adc.c | ||
pc87360.c | ||
pc87427.c | ||
pcf8591.c | ||
pkgtemp.c | ||
s3c-hwmon.c | ||
sht15.c | ||
sis5595.c | ||
smsc47b397.c | ||
smsc47m1.c | ||
smsc47m192.c | ||
thmc50.c | ||
tmp102.c | ||
tmp401.c | ||
tmp421.c | ||
ultra45_env.c | ||
via686a.c | ||
via-cputemp.c | ||
vt1211.c | ||
vt8231.c | ||
w83l785ts.c | ||
w83l786ng.c | ||
w83627ehf.c | ||
w83627hf.c | ||
w83781d.c | ||
w83791d.c | ||
w83792d.c | ||
w83793.c | ||
wm831x-hwmon.c | ||
wm8350-hwmon.c |