summaryrefslogtreecommitdiff
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorDietmar Eggemann <dietmar.eggemann@arm.com>2015-09-17 16:10:56 +0100
committerLeo Yan <leo.yan@linaro.org>2016-05-10 16:49:48 +0800
commit259bd4cd8a4c5776e86ae1a86f1f8e1168e84212 (patch)
treedbdc4dbc80be329a015e6898d052664fa07aba19 /include/linux/kernel.h
parent0ecbd590a7175818fcbccc9d5b1dc819aae25c86 (diff)
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. Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions