Commit 7e14d7d5 authored by Dietmar Eggemann's avatar Dietmar Eggemann Committed by Todd Kjos
Browse files

cpufreq: Frequency invariant scheduler load-tracking support



Implements cpufreq_scale_freq_capacity() to provide the scheduler with a
frequency scaling correction factor for more accurate load-tracking.

The factor is:

	current_freq(cpu) << SCHED_CAPACITY_SHIFT / max_freq(cpu)

In fact, freq_scale should be a struct cpufreq_policy data member. But
this would require that the scheduler hot path (__update_load_avg()) would
have to grab the cpufreq lock. This can be avoided by using per-cpu data
initialized to SCHED_CAPACITY_SCALE for freq_scale.

Change-Id: I8aa1c424a33794db78c35a80c57184d992e71d2b
Signed-off-by: default avatarDietmar Eggemann <dietmar.eggemann@arm.com>
parent 57118000
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment