sched: Account rr tasks
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 4 Nov 2015 17:17:10 +0000 (18:17 +0100)
committerFrederic Weisbecker <fweisbec@gmail.com>
Wed, 2 Mar 2016 15:43:04 +0000 (16:43 +0100)
commit01d36d0ac390895e719d0dd8ab91ebbbf506d28e
tree7b6b8d5b5bc7828db60cdbf9215565a32d1709c1
parent555e0c1ef7ff49ee5ac3a1eb12de4a2e4722f63d
sched: Account rr tasks

In order to evaluate the scheduler tick dependency without probing
context switches, we need to know how much SCHED_RR and SCHED_FIFO tasks
are enqueued as those policies don't have the same preemption
requirements.

To prepare for that, let's account SCHED_RR tasks, we'll be able to
deduce SCHED_FIFO tasks as well from it and the total RT tasks in the
runqueue.

Reviewed-by: Chris Metcalf <cmetcalf@ezchip.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Chris Metcalf <cmetcalf@ezchip.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Luiz Capitulino <lcapitulino@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
kernel/sched/rt.c
kernel/sched/sched.h