summaryrefslogtreecommitdiffstats
path: root/Documentation/thermal
diff options
context:
space:
mode:
authorJavi Merino <javi.merino@arm.com>2015-05-02 11:15:24 +0200
committerEduardo Valentin <edubezval@gmail.com>2015-05-12 03:57:44 +0200
commitea54cac9065112724f3432e0574ba3e346fd695d (patch)
tree1d8fab906d5d50ee2ebf374ac480b1559fdfd077 /Documentation/thermal
parentthermal: exynos: Add the support for Exynos5433 TMU (diff)
downloadlinux-ea54cac9065112724f3432e0574ba3e346fd695d.tar.xz
linux-ea54cac9065112724f3432e0574ba3e346fd695d.zip
thermal: power_allocator: round the division when divvying up power
In situations where there is an uneven number of cooling devices, the division of power among them can lead to a milliwatt being dropped on the floor due to rounding errors. This doesn't sound like a lot, but some devices only grant the lowest cooling device state for their maximum power. So for instance, if the granted_power is the maximum power and all devices are getting their maximum power, one would get max_power - 1, making it choose cooling device state 1, instead of 0. Round the division to make the calculation more accurate. Cc: Zhang Rui <rui.zhang@intel.com> Cc: Eduardo Valentin <edubezval@gmail.com> Signed-off-by: Javi Merino <javi.merino@arm.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'Documentation/thermal')
0 files changed, 0 insertions, 0 deletions