Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

acpi thermal trip points increased to 12

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

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Cc: Len Brown <lenb@kernel.org>
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Krzysztof Helt and committed by
Linus Torvalds
5f1a3f2a f0a37e00

+5 -1
+4
drivers/thermal/thermal.c
··· 196 196 __ATTR(trip_point_8_temp, 0444, trip_point_temp_show, NULL), 197 197 __ATTR(trip_point_9_type, 0444, trip_point_type_show, NULL), 198 198 __ATTR(trip_point_9_temp, 0444, trip_point_temp_show, NULL), 199 + __ATTR(trip_point_10_type, 0444, trip_point_type_show, NULL), 200 + __ATTR(trip_point_10_temp, 0444, trip_point_temp_show, NULL), 201 + __ATTR(trip_point_11_type, 0444, trip_point_type_show, NULL), 202 + __ATTR(trip_point_11_temp, 0444, trip_point_temp_show, NULL), 199 203 }; 200 204 201 205 #define TRIP_POINT_ATTR_ADD(_dev, _index, result) \
+1 -1
include/linux/thermal.h
··· 50 50 }; 51 51 52 52 #define THERMAL_TRIPS_NONE -1 53 - #define THERMAL_MAX_TRIPS 10 53 + #define THERMAL_MAX_TRIPS 12 54 54 #define THERMAL_NAME_LENGTH 20 55 55 struct thermal_cooling_device { 56 56 int id;