linux/Documentation/thermal
Javi Merino bcdcbbc711 thermal: fair_share: generalize the weight concept
The fair share governor has the concept of weights, which is the
influence of each cooling device in a thermal zone.  The current
implementation forces the weights of all cooling devices in a thermal
zone to add up to a 100.  This complicates setups, as you need to know
in advance how many cooling devices you are going to have.  If you bind a
new cooling device, you have to modify all the other cooling devices
weights, which is error prone.  Furthermore, you can't specify a
"default" weight for platforms since that default value depends on the
number of cooling devices in the platform.

This patch generalizes the concept of weight by allowing any number to
be a "weight".  Weights are now relative to each other.  Platforms that
don't specify weights get the same default value for all their cooling
devices, so all their cdevs are considered to be equally influential.

It's important to note that previous users of the weights don't need to
alter the code: percentages continue to work as they used to.  This
patch just removes the constraint of all the weights in a thermal zone
having to add up to a 100.  If they do, you get the same behavior as
before.  If they don't, fair share now works for that platform.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Cc: Durgadoss R <durgadoss.r@intel.com>
Acked-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
2015-05-04 21:27:51 -07:00
..
cpu-cooling-api.txt Documentation: thermal: document of_cpufreq_cooling_register() 2015-01-06 14:39:17 -04:00
exynos_thermal Documentation: thermal: Explain the exynos thermal driver model 2013-08-13 09:52:04 -04:00
exynos_thermal_emulation doc: fix misspellings with 'codespell' tool 2013-05-28 12:02:12 +02:00
intel_powerclamp.txt PM: Introduce Intel PowerClamp Driver 2013-02-06 13:45:00 +08:00
nouveau_thermal drm/nouveau/doc: update the thermal documentation 2014-06-17 14:50:17 +10:00
sysfs-api.txt thermal: fair_share: generalize the weight concept 2015-05-04 21:27:51 -07:00
x86_pkg_temperature_thermal Thermal: Documentation for x86 package temperature thermal driver 2013-06-18 06:27:57 +08:00