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)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 14 Sep 2016 09:28:22 +0000 (14:58 +0530)
commit9a379e95dbeefbb8b891aae0192b899c6d617d94
tree82be29efad804d6b1bc0b0807ac2af16ed60887a
parent39daf1cf5ae48b11441d3084bc2908bdaffc3a5d
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