All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched_rt: Removes extra checking for nr_cpus_allowed when calling find_lowest_rq
@ 2010-10-19 10:57 Rakib Mullick
  2010-10-19 11:02 ` Peter Zijlstra
  0 siblings, 1 reply; 9+ messages in thread
From: Rakib Mullick @ 2010-10-19 10:57 UTC (permalink / raw)
  To: LKML; +Cc: Ingo Molnar, Peter Zijlstra

 sched_rt: Removes extra checking for nr_cpus_allowed when calling
find_lowest_rq

Remove the check for nr_cpus_allowed of an RT task before calling
find_lowest_cpu() from select_task_rq_rt function. Cause
find_lowest_cpu checks for rt.nr_cpus_allowed of a process.
It would've been nice, if we make the check before calling
find_lowest_cpu. But its called from other places, so keep the
nr_cpus_allowed check into find_lowest_cpu().


Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
---

--- linus-rc8/kernel/sched_rt.c	2010-10-15 05:26:43.000000000 +0600
+++ rakib-rc8/kernel/sched_rt.c	2010-10-19 16:22:30.000000000 +0600
@@ -971,8 +971,7 @@ select_task_rq_rt(struct rq *rq, struct
 	 * that is just being woken and probably will have
 	 * cold cache anyway.
 	 */
-	if (unlikely(rt_task(rq->curr)) &&
-	    (p->rt.nr_cpus_allowed > 1)) {
+	if (unlikely(rt_task(rq->curr))) {
 		int cpu = find_lowest_rq(p);

 		return (cpu == -1) ? task_cpu(p) : cpu;

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-10-20  4:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-19 10:57 [PATCH] sched_rt: Removes extra checking for nr_cpus_allowed when calling find_lowest_rq Rakib Mullick
2010-10-19 11:02 ` Peter Zijlstra
2010-10-19 11:12   ` Rakib Mullick
2010-10-19 12:38   ` Steven Rostedt
2010-10-19 12:57   ` Gregory Haskins
2010-10-19 13:01     ` Steven Rostedt
2010-10-19 13:07       ` Gregory Haskins
2010-10-19 14:40     ` Rakib Mullick
2010-10-20  4:13       ` Rakib Mullick

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.