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)
commitf2234bcd03ad031225d7dc37dd18852a2f2ff2bf
tree1c23fe1e13aeeedfd5ff446150e947a9732fefc2
parent5ca0cce5622bf476e3e6bf627fe8e9381d6ae174
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