summaryrefslogtreecommitdiffstats
path: root/Documentation/thermal
diff options
context:
space:
mode:
authorJavi Merino <javi.merino@arm.com>2015-02-18 11:04:24 -0500
committerEduardo Valentin <edubezval@gmail.com>2015-05-05 00:27:51 -0400
commitdb91651311c8b89978b17d27634582c28c33363e (patch)
tree67786b4eb698a3f3712a83a87ad89a0c267c1627 /Documentation/thermal
parent80b89172f9c3410764e0d962d6494c0af6d6dba8 (diff)
thermal: export weight to sysfs
It's useful to have access to the weights for the cooling devices for thermal zones and change them if needed. Export them to sysfs. Cc: Zhang Rui <rui.zhang@intel.com> Cc: Eduardo Valentin <edubezval@gmail.com> Signed-off-by: Javi Merino <javi.merino@arm.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'Documentation/thermal')
-rw-r--r--Documentation/thermal/sysfs-api.txt15
1 files changed, 14 insertions, 1 deletions
diff --git a/Documentation/thermal/sysfs-api.txt b/Documentation/thermal/sysfs-api.txt
index 7ec632ed9769..3625453ceef6 100644
--- a/Documentation/thermal/sysfs-api.txt
+++ b/Documentation/thermal/sysfs-api.txt
@@ -194,6 +194,8 @@ thermal_zone_bind_cooling_device/thermal_zone_unbind_cooling_device.
194/sys/class/thermal/thermal_zone[0-*]: 194/sys/class/thermal/thermal_zone[0-*]:
195 |---cdev[0-*]: [0-*]th cooling device in current thermal zone 195 |---cdev[0-*]: [0-*]th cooling device in current thermal zone
196 |---cdev[0-*]_trip_point: Trip point that cdev[0-*] is associated with 196 |---cdev[0-*]_trip_point: Trip point that cdev[0-*] is associated with
197 |---cdev[0-*]_weight: Influence of the cooling device in
198 this thermal zone
197 199
198Besides the thermal zone device sysfs I/F and cooling device sysfs I/F, 200Besides the thermal zone device sysfs I/F and cooling device sysfs I/F,
199the generic thermal driver also creates a hwmon sysfs I/F for each _type_ 201the generic thermal driver also creates a hwmon sysfs I/F for each _type_
@@ -267,6 +269,14 @@ cdev[0-*]_trip_point
267 point. 269 point.
268 RO, Optional 270 RO, Optional
269 271
272cdev[0-*]_weight
273 The influence of cdev[0-*] in this thermal zone. This value
274 is relative to the rest of cooling devices in the thermal
275 zone. For example, if a cooling device has a weight double
276 than that of other, it's twice as effective in cooling the
277 thermal zone.
278 RW, Optional
279
270passive 280passive
271 Attribute is only present for zones in which the passive cooling 281 Attribute is only present for zones in which the passive cooling
272 policy is not supported by native thermal driver. Default is zero 282 policy is not supported by native thermal driver. Default is zero
@@ -320,7 +330,8 @@ passive, active. If an ACPI thermal zone supports critical, passive,
320active[0] and active[1] at the same time, it may register itself as a 330active[0] and active[1] at the same time, it may register itself as a
321thermal_zone_device (thermal_zone1) with 4 trip points in all. 331thermal_zone_device (thermal_zone1) with 4 trip points in all.
322It has one processor and one fan, which are both registered as 332It has one processor and one fan, which are both registered as
323thermal_cooling_device. 333thermal_cooling_device. Both are considered to have the same
334effectiveness in cooling the thermal zone.
324 335
325If the processor is listed in _PSL method, and the fan is listed in _AL0 336If the processor is listed in _PSL method, and the fan is listed in _AL0
326method, the sys I/F structure will be built like this: 337method, the sys I/F structure will be built like this:
@@ -342,8 +353,10 @@ method, the sys I/F structure will be built like this:
342 |---trip_point_3_type: active1 353 |---trip_point_3_type: active1
343 |---cdev0: --->/sys/class/thermal/cooling_device0 354 |---cdev0: --->/sys/class/thermal/cooling_device0
344 |---cdev0_trip_point: 1 /* cdev0 can be used for passive */ 355 |---cdev0_trip_point: 1 /* cdev0 can be used for passive */
356 |---cdev0_weight: 1024
345 |---cdev1: --->/sys/class/thermal/cooling_device3 357 |---cdev1: --->/sys/class/thermal/cooling_device3
346 |---cdev1_trip_point: 2 /* cdev1 can be used for active[0]*/ 358 |---cdev1_trip_point: 2 /* cdev1 can be used for active[0]*/
359 |---cdev1_weight: 1024
347 360
348|cooling_device0: 361|cooling_device0:
349 |---type: Processor 362 |---type: Processor