Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e9c901c2 authored by Derek Basehore's avatar Derek Basehore Committed by alexax66
Browse files

CHROMIUM: cpufreq: interactive: calculate load before freq change



The update to cpu load for cpufreq rate changes was happening after the rate
change instead of before. This switches it to update the cpu load before the
cpufreq rate change so the old frequency is used for calculating the speed
adjusted cpu load. The old frequency was used for that active time, so it should
be used for calculating the speed adjusted cpu load.

BUG=chrome-os-partner:37673
TEST=power_LoadTest on Jerry
check we spend most of our time at the lower cpu frequencies

Change-Id: I2fff785561ad8aebd354ddd305e91d96c799a617
Signed-off-by: default avatarDerek Basehore <dbasehore@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/262925


Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
Signed-off-by: default avatarfranciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: default avatarJesse Chan <jc@linux.com>
Signed-off-by: default avatarTkkg1994 <luca.grifo@outlook.com>
parent d4e199a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment