thermal: fair_share: use the weight from the thermal instance
authorJavi Merino <javi.merino@arm.com>
Wed, 18 Feb 2015 16:04:22 +0000 (16:04 +0000)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 5 May 2015 04:27:51 +0000 (21:27 -0700)
commit8b91e2cb24fbba3825d09a412ce2e1966e7c92d1
treee1eea5394db5689227b5029f78467fb74bf425b3
parent6cd9e9f629f11b9412d4e9aa294c029dbb36b3cf
thermal: fair_share: use the weight from the thermal instance

The fair share governor is not usable with thermal zones that use the
bind op and don't populate thermal_zone_parameters, the majority of
them.  Now that the weight is in the thermal instance, we can use that
in the fair share governor to allow every thermal zone to trivially use
this governor.  Furthermore, this simplifies the code.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Cc: Durgadoss R <durgadoss.r@intel.com>
Reviewed-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/fair_share.c