sched: rt scheduler sets capacity requirement
authorVincent Guittot <vincent.guittot@linaro.org>
Mon, 26 Oct 2015 17:14:50 +0000 (18:14 +0100)
committerPunit Agrawal <punit.agrawal@arm.com>
Mon, 21 Mar 2016 12:42:07 +0000 (12:42 +0000)
commit778431874e9815c04d82d30630c5c0400d4e53db
tree0af9a3939f9f1c416e9198f1ad8beb9c0204757d
parenta4de8df5ba84d819832509c03a0f58f4fbcc76e4
sched: rt scheduler sets capacity requirement

RT tasks don't provide any running constraints like deadline ones
except their running priority. The only current usable input to
estimate the capacity needed by RT tasks is the rt_avg metric. We use
it to estimate the CPU capacity needed for the RT scheduler class.

In order to monitor the evolution for RT task load, we must
peridiocally check it during the tick.

Then, we use the estimated capacity of the last activity to estimate
the next one which can not be that accurate but is a good starting
point without any impact on the wake up path of RT tasks.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Steve Muckle <smuckle@linaro.org>
kernel/sched/rt.c