diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2008-01-25 15:08:32 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-25 15:08:32 -0500 |
commit | 1020387f5f3b52929b387103cf976321981f8e26 (patch) | |
tree | 201f6c44cc09c57dc936cc804971d37178007687 /kernel/sched_rt.c | |
parent | 37bb6cb4097e29ffee970065b74499cbf10603a3 (diff) |
sched: rt-group: reduce rescheduling
Only reschedule if the new group has a higher prio task.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_rt.c')
-rw-r--r-- | kernel/sched_rt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index 8bfdb3f8a52d..f1f215db3bd0 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c | |||
@@ -94,8 +94,11 @@ static void sched_rt_ratio_enqueue(struct rt_rq *rt_rq) | |||
94 | struct sched_rt_entity *rt_se = rt_rq->rt_se; | 94 | struct sched_rt_entity *rt_se = rt_rq->rt_se; |
95 | 95 | ||
96 | if (rt_se && !on_rt_rq(rt_se) && rt_rq->rt_nr_running) { | 96 | if (rt_se && !on_rt_rq(rt_se) && rt_rq->rt_nr_running) { |
97 | struct task_struct *curr = rq_of_rt_rq(rt_rq)->curr; | ||
98 | |||
97 | enqueue_rt_entity(rt_se); | 99 | enqueue_rt_entity(rt_se); |
98 | resched_task(rq_of_rt_rq(rt_rq)->curr); | 100 | if (rt_rq->highest_prio < curr->prio) |
101 | resched_task(curr); | ||
99 | } | 102 | } |
100 | } | 103 | } |
101 | 104 | ||