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:
Pavankumar Kondeti <pkondeti@codeaurora.org>
Loading
Please register or sign in to comment