Commit f9034e21 authored by David Dai's avatar David Dai Committed by Treehugger Robot
Browse files

ANDROID: cpufreq: Improve util tracking and add pressure

There are VM usecases where physical CPU frequencies can exceed
the max allowed frequency given to the guest, relax the requirement
for freq_scale such that:

freq_scale * arch_scale < sched_scale_capacity^2

This guarantees pelt_clock is less than elapsed time, and will allow
for more accurate util accumulation and tracking for tasks inside vCPUs.

Add thermal pressure when userspace limits scaling_freq_max for
better task placement decisions inside the guest. Thermal pressure
is reworked as generic system pressure in the link below and will
supersede this change.

Bug: 284368385
Link: https://lore.kernel.org/all/20240326091616.3696851-1-vincent.guittot@linaro.org/


Change-Id: Ibdefc41b9ced3d4686cbc6b802270716621be944
Signed-off-by: default avatarDavid Dai <davidai@google.com>
parent 2dd2a189
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment