Skip to contentSkip to conversation

acpi thermal trip points increased to 12

PATCH New [email protected] 1 participant 1 message Apr 9, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 acpi thermal trip points increased to 12

From: Krzysztof Helt <[email protected]>

The THERMAL_MAX_TRIPS value is set to 10. It is too few for the Compaq AP550 machine which has 12 trip points.

Cc Len Brown <[email protected]>
Cc Zhang Rui <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>

---

 drivers/thermal/thermal.c |    4 ++++
 include/linux/thermal.h   |    2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
drivers/thermal/thermal.c renamed from drivers/thermal/thermal.c~acpi-thermal-trip-points-increased-to-12 +4 -0
diff -puN drivers/thermal/thermal.c~acpi-thermal-trip-points-increased-to-12 drivers/thermal/thermal.c
@@ -196,6 +196,10 @@ static struct device_attribute trip_poin
 	__ATTR(trip_point_8_temp, 0444, trip_point_temp_show, NULL),
 	__ATTR(trip_point_9_type, 0444, trip_point_type_show, NULL),
 	__ATTR(trip_point_9_temp, 0444, trip_point_temp_show, NULL),
+	__ATTR(trip_point_10_type, 0444, trip_point_type_show, NULL),
+	__ATTR(trip_point_10_temp, 0444, trip_point_temp_show, NULL),
+	__ATTR(trip_point_11_type, 0444, trip_point_type_show, NULL),
+	__ATTR(trip_point_11_temp, 0444, trip_point_temp_show, NULL),
 };
 
 #define TRIP_POINT_ATTR_ADD(_dev, _index, result)     \
include/linux/thermal.h renamed from include/linux/thermal.h~acpi-thermal-trip-points-increased-to-12 +1 -1
diff -puN include/linux/thermal.h~acpi-thermal-trip-points-increased-to-12 include/linux/thermal.h
@@ -50,7 +50,7 @@ struct thermal_cooling_device_ops {
 };
 
 #define THERMAL_TRIPS_NONE -1
-#define THERMAL_MAX_TRIPS 10
+#define THERMAL_MAX_TRIPS 12
 #define THERMAL_NAME_LENGTH 20
 struct thermal_cooling_device {
 	int id;

_