]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: add available policies sysfs attribute
authorNi Wade <wni@nvidia.com>
Tue, 14 Jul 2015 07:40:56 +0000 (15:40 +0800)
committerZhang Rui <rui.zhang@intel.com>
Mon, 3 Aug 2015 15:15:50 +0000 (23:15 +0800)
commit5935534b79bb321d5d2a3732460fe7e66953e9fc
tree4debaeb56d0784c137b0b91afb5cfd9b7da41bc6
parenta5b64a5377e446131b64219824edf0ab30c2e5e4
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>
Documentation/thermal/sysfs-api.txt
drivers/thermal/thermal_core.c