Skip to contentSkip to conversation

sched/rt: Substract number throttled rt_rq's tasks from rq->nr_running

PATCH In review Kirill Tkhai 2 participants 2 messages Mar 14, 2014 – Mar 19, 2014

lore
Share & tools
lore
#0 lore raw

cover sched/rt: Substract number throttled rt_rq's tasks from rq->nr_running

This patchset makes RT class to fit generic scheme, which is used in fair and deadline classes.

Number of tasks of throttled rt_rq and its children is being decremented from rq->nr_running, when rt_rq becomes throlled.

---

Kirill Tkhai (4):
sched/rt: Sum number of all children tasks in hierarhy at rt_nr_running sched/rt: Add accessors rq_of_rt_se()
sched/rt: Substract number of tasks of throttled queues from rq->nr_running
sched: Revert commit 4c6c4e38c4e9

 kernel/sched/fair.c  |    4 --
 kernel/sched/rt.c    |  115 +++++++++++++++++++++++++++++++++++++++++++-------
 kernel/sched/sched.h |   14 +-----
 3 files changed, 102 insertions(+), 31 deletions(-)
Signature · 1 line
Signed-off-by: Kirill Tkhai <[email protected]>
#1 lore raw
Quoted 5 lines · Kirill Tkhai

This patchset makes RT class to fit generic scheme, which is used in fair and deadline classes.

Number of tasks of throttled rt_rq and its children is being decremented from rq->nr_running, when rt_rq becomes throlled.

Couldn't help yourself eh?

Thanks for cleaning that up!