]> git.baikalelectronics.ru Git - kernel.git/commit
Thermal: thermal zone governor fix
authorZhang Rui <rui.zhang@intel.com>
Fri, 24 Jan 2014 02:23:19 +0000 (10:23 +0800)
committerZhang Rui <rui.zhang@intel.com>
Mon, 3 Mar 2014 15:15:57 +0000 (23:15 +0800)
commit616134078797c1d57f1ba8c9bd7157099a1a7402
tree1c23fe1e13aeeedfd5ff446150e947a9732fefc2
parent113bbd4c9b78dbc9c85f46d2261e349c76b708b8
Thermal: thermal zone governor fix

This patch does a cleanup about the thermal zone govenor,
setting and make the following rule.
1. For thermal zone devices that are registered w/o tz->tzp,
   they can use the default thermal governor only.
2. For thermal zone devices w/ governor name specified in
   tz->tzp->governor_name, we will use the default govenor
   if the governor specified is not available at the moment,
   and update tz->governor when the matched governor is registered.

This also fixes a problem that OF registered thermal zones
are running with no governor.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Acked-by: Javi Merino <javi.merino@arm.com>
drivers/thermal/thermal_core.c