]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Thermal: Introduce simple arbitrator for setting device cooling state
authorZhang Rui <rui.zhang@intel.com>
Wed, 27 Jun 2012 06:13:04 +0000 (14:13 +0800)
committerZhang Rui <rui.zhang@intel.com>
Thu, 9 Aug 2012 01:11:08 +0000 (09:11 +0800)
commit18f67523eb2ef9ffb1a0e9fd8f125b43cbd14182
tree82ef036b21cc958beed8a0c7def6fbe50ab3ca1b
parent371fcd6c49db72c12ee130c0624e4afc351b7320
Thermal: Introduce simple arbitrator for setting device cooling state

This fixes the problem that a cooling device may be referenced by
by multiple trip points in multiple thermal zones.

With this patch, we have two stages for updating a thermal zone,
1. check if a thermal_instance needs to be updated or not
2. update the cooling device, based on the target cooling state
   of all its instances.

Note that, currently, the cooling device is set to the deepest
cooling state required.

Reviewed-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/thermal_sys.c
include/linux/thermal.h