sched: entity load-tracking load_avg_ratio
authorMorten Rasmussen <Morten.Rasmussen@arm.com>
Fri, 14 Sep 2012 13:38:08 +0000 (14:38 +0100)
committerJon Medhurst <tixy@linaro.org>
Wed, 17 Jul 2013 10:12:24 +0000 (11:12 +0100)
commitbe6ef1d56e70bfdfd79174d7d23a4b12d5b911ee
tree4773d3ecf6652d40eddda6f151cba25b783d6d47
parent0841c6ae0b53d43e4634cf4a1f88407b93c15399
sched: entity load-tracking load_avg_ratio

This patch adds load_avg_ratio to each task. The load_avg_ratio is a
variant of load_avg_contrib which is not scaled by the task priority. It
is calculated like this:

runnable_avg_sum * NICE_0_LOAD / (runnable_avg_period + 1).

Signed-off-by: Morten Rasmussen <Morten.Rasmussen@arm.com>
include/linux/sched.h
kernel/sched/fair.c