Skip to contentSkip to conversation

hwmon: (coretemp) Improve support for TjMax detection on Atom CPUs

RFC PATCH Superseded Guenter Roeck 1 participant 1 message Jun 4, 2012

Subsystems (2)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Guenter Roeck

author maintainer
#0 lore raw

RFC PATCH v2 2/2 hwmon: (coretemp) Improve support for TjMax detection on Atom CPUs

Atom CPUs don't have a register to retrieve TjMax. Detection so far was incomplete. Use the X86 model ID to improve it.

This patch also removes the dependency on PCI code, since the PCI host bridge type is no longer used to detect TjMax.

Cc Durgadoss R <[email protected]>
Cc Fenghua Yu <[email protected]>

---
v2: Dropped PCI dependencies
Fixed 330 and 230 detection (2 spaces between CPU and 330/230) Added support for Cedar Creek CPUs
Declared atom_tjmax as __cpuinitconst

Questions:

Would it make sense to keep the PCI detection in addition to the new detection code ?

Would it make sense to include the CPU model number in struct tjmax, to make detection more generic ?

 drivers/hwmon/Kconfig    |    2 +-
 drivers/hwmon/coretemp.c |   52 ++++++++++++++++++++++++++++++++++-----------
 2 files changed, 40 insertions(+), 14 deletions(-)
drivers/hwmon/Kconfig +1 -1
index 6f1d167..3a7c248 100644
@@ -435,7 +435,7 @@ config SENSORS_GPIO_FAN
 
 config SENSORS_CORETEMP
 	tristate "Intel Core/Core2/Atom temperature sensor"
-	depends on X86 && PCI && EXPERIMENTAL
+	depends on X86 && EXPERIMENTAL
 	help
 	  If you say yes here you get support for the temperature
 	  sensor inside your CPU. Most of the family 6 CPUs
drivers/hwmon/coretemp.c +39 -13

77 lines not on this page · raw message

Signature · 7 lines
1.7.5.4


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors