-
- Downloads
cpufreq: cpu-boost: Introduce scheduler assisted load based syncs
Previously, on getting a migration notification cpu-boost changed
the scaling min of the destination frequency to match that of the
source frequency or sync_threshold whichever was minimum.
If the scheduler migration notification is extended with task load
(cpu demand) information, the cpu boost driver can use this load to
compute a suitable frequency for the migrating task. The required
frequency for the task is calculated by taking the load percentage
of the max frequency and no sync is performed if the load is less
than a particular value (migration_load_threshold).This change is
beneficial for both perf and power as demand of a task is taken into
consideration while making cpufreq decisions and unnecessary syncs
for lightweight tasks are avoided.
The task load information provided by scheduler comes from a
window-based load collection mechanism which also normalizes the
load collected by the scheduler to the max possible frequency
across all CPUs.
Change-Id: Id2ba91cc4139c90602557f9b3801fb06b3c38992
Signed-off-by:
Rohit Gupta <rohgup@codeaurora.org>
Showing
- drivers/cpufreq/cpu-boost.c 32 additions, 11 deletionsdrivers/cpufreq/cpu-boost.c
- include/linux/sched.h 5 additions, 0 deletionsinclude/linux/sched.h
- kernel/sched/core.c 22 additions, 5 deletionskernel/sched/core.c
- kernel/sched/fair.c 27 additions, 12 deletionskernel/sched/fair.c
- kernel/sched/sched.h 1 addition, 0 deletionskernel/sched/sched.h
Loading
Please register or sign in to comment