[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <BANLkTinw9LLiGD788+6AvbE+54jyVRUwBg@mail.gmail.com>
Date: Sun, 15 May 2011 10:50:48 +0800
From: Hillf Danton <dhillf@...il.com>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Ingo Molnar <mingo@...e.hu>, Peter Zijlstra <peterz@...radead.org>,
Mike Galbraith <efault@....de>,
Yong Zhang <yong.zhang0@...il.com>
Subject: [PATCH] sched: fix how RT task is pulled
When pulling RT task for a given runqueue, if it is already overloaded
with RT tasks, the pull operation could be avoided at the moment.
btw, it looks like a typo?
Signed-off-by: Hillf Danton <dhillf@...il.com>
---
kernel/sched_rt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c
index 19ecb31..14c764b 100644
--- a/kernel/sched_rt.c
+++ b/kernel/sched_rt.c
@@ -1440,7 +1440,7 @@ static int pull_rt_task(struct rq *this_rq)
struct task_struct *p;
struct rq *src_rq;
- if (likely(!rt_overloaded(this_rq)))
+ if (unlikely(rt_overloaded(this_rq)))
return 0;
for_each_cpu(cpu, this_rq->rd->rto_mask) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists