diff options
author | Ni Wade <wni@nvidia.com> | 2015-07-14 03:40:56 -0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2015-08-03 11:15:50 -0400 |
commit | 25a0a5ce16ecd7e60c4cf1436892433873e9d99d (patch) | |
tree | 4debaeb56d0784c137b0b91afb5cfd9b7da41bc6 /Documentation | |
parent | 74d33293e467df61de1b1d8b2fbe29e550dec33b (diff) |
thermal: add available policies sysfs attribute
The Linux thermal framework support to change thermal governor
policy in userspace, but it can't show what available policies
supported.
This patch adds available_policies attribute to the thermal
framework, it can list the thermal governors which can be
used for a particular zone. This attribute is read only.
Signed-off-by: Wei Ni <wni@nvidia.com>
Reviewed-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/thermal/sysfs-api.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/thermal/sysfs-api.txt b/Documentation/thermal/sysfs-api.txt index c1f6864a8c5d..10f062ea6bc2 100644 --- a/Documentation/thermal/sysfs-api.txt +++ b/Documentation/thermal/sysfs-api.txt | |||
@@ -180,6 +180,7 @@ Thermal zone device sys I/F, created once it's registered: | |||
180 | |---temp: Current temperature | 180 | |---temp: Current temperature |
181 | |---mode: Working mode of the thermal zone | 181 | |---mode: Working mode of the thermal zone |
182 | |---policy: Thermal governor used for this zone | 182 | |---policy: Thermal governor used for this zone |
183 | |---available_policies: Available thermal governors for this zone | ||
183 | |---trip_point_[0-*]_temp: Trip point temperature | 184 | |---trip_point_[0-*]_temp: Trip point temperature |
184 | |---trip_point_[0-*]_type: Trip point type | 185 | |---trip_point_[0-*]_type: Trip point type |
185 | |---trip_point_[0-*]_hyst: Hysteresis value for this trip point | 186 | |---trip_point_[0-*]_hyst: Hysteresis value for this trip point |
@@ -256,6 +257,10 @@ policy | |||
256 | One of the various thermal governors used for a particular zone. | 257 | One of the various thermal governors used for a particular zone. |
257 | RW, Required | 258 | RW, Required |
258 | 259 | ||
260 | available_policies | ||
261 | Available thermal governors which can be used for a particular zone. | ||
262 | RO, Required | ||
263 | |||
259 | trip_point_[0-*]_temp | 264 | trip_point_[0-*]_temp |
260 | The temperature above which trip point will be fired. | 265 | The temperature above which trip point will be fired. |
261 | Unit: millidegree Celsius | 266 | Unit: millidegree Celsius |
@@ -417,6 +422,7 @@ method, the sys I/F structure will be built like this: | |||
417 | |---temp: 37000 | 422 | |---temp: 37000 |
418 | |---mode: enabled | 423 | |---mode: enabled |
419 | |---policy: step_wise | 424 | |---policy: step_wise |
425 | |---available_policies: step_wise fair_share | ||
420 | |---trip_point_0_temp: 100000 | 426 | |---trip_point_0_temp: 100000 |
421 | |---trip_point_0_type: critical | 427 | |---trip_point_0_type: critical |
422 | |---trip_point_1_temp: 80000 | 428 | |---trip_point_1_temp: 80000 |