sched: deadline: use deadline bandwidth in scale_rt_capacity
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 3 Nov 2015 09:39:01 +0000 (10:39 +0100)
committerPunit Agrawal <punit.agrawal@arm.com>
Mon, 21 Mar 2016 12:42:07 +0000 (12:42 +0000)
commita4de8df5ba84d819832509c03a0f58f4fbcc76e4
treeee2723a4d75511c24081f3af4735354dbd5d6719
parente724121586dfa7df4301dedaf7af5ce7facaf4a2
sched: deadline: use deadline bandwidth in scale_rt_capacity

Instead of monitoring the exec time of deadline tasks to evaluate the
CPU capacity consumed by deadline scheduler class, we can directly
calculate it thanks to the sum of utilization of deadline tasks on the
CPU.  We can remove deadline tasks from rt_avg metric and directly use
the average bandwidth of deadline scheduler in scale_rt_capacity.

Based in part on a similar patch from Luca Abeni <luca.abeni@unitn.it>.

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