projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6e5a73
)
[COMMON] thermal: power_allocator: avoid req_power is 0
author
Hyeonseong Gil
<hs.gil@samsung.com>
Thu, 24 Mar 2016 02:12:19 +0000
(11:12 +0900)
committer
Chungwoo Park
<cww.park@samsung.com>
Mon, 21 May 2018 08:09:31 +0000
(17:09 +0900)
In case only one actor belong to power_allocator,
target frequency will be limited minium frequency
when req_power(load) is 0.
Change-Id: Iab369eb49c24daab9f4e64ba6adb4c129b3c37b7
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
drivers/thermal/power_allocator.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/thermal/power_allocator.c
b/drivers/thermal/power_allocator.c
index b4d3116cfdafe81767b2b1c91fcab4a034f29041..9e0f02427b108e0efbae4cb8e357aaadcaf3208b 100644
(file)
--- a/
drivers/thermal/power_allocator.c
+++ b/
drivers/thermal/power_allocator.c
@@
-403,6
+403,9
@@
static int allocate_power(struct thermal_zone_device *tz,
else
weight = instance->weight;
+ if (req_power[i] == 0)
+ req_power[i] = 1;
+
weighted_req_power[i] = frac_to_int(weight * req_power[i]);
if (power_actor_get_max_power(cdev, tz, &max_power[i]))