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

Skip to content
Commit 16540cf2 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

cpufreq: schedutil: Fix the incorrect average capacity calculation



Don't go beyond the next window while calculating the cycles in
sugov_track_cycles(). Doing so results in calling sugov_track_cycles()
with backwards time stamp. The next window is updated after the
average capacity is calculated and subsequent calls to
sugov_track_cycles() update the cycles for the next window.

Change-Id: Ic2b1262113859e4e8d8c1f3d69bbe1a610ca92de
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 8f0f3b0c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment