[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJd=RBAsSHp2KSnwF6h1fYCQyMCA-Lg31WNr9eTbuenkAU+vbw@mail.gmail.com>
Date: Tue, 10 Apr 2012 22:25:33 +0800
From: Hillf Danton <dhillf@...il.com>
To: Dario Faggioli <raistlin@...ux.it>,
Juri Lelli <juri.lelli@...il.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
Hillf Danton <dhillf@...il.com>
Subject: [patch] DLS: fix switched_from_dl
Pull only if the current task switches from DLS, since it was not preempted
by pushable tasks waiting on other runqueues.
Signed-off-by: Hillf Danton <dhillf@...il.com>
---
--- a/kernel/sched_dl.c Mon Apr 9 19:39:56 2012
+++ b/kernel/sched_dl.c Tue Apr 10 21:23:52 2012
@@ -1466,12 +1466,7 @@ static void switched_from_dl(struct rq *
hrtimer_try_to_cancel(&p->dl.dl_timer);
#ifdef CONFIG_SMP
- /*
- * Since this might be the only -deadline task on the rq,
- * this is the right place to try to pull some other one
- * from an overloaded cpu, if any.
- */
- if (!rq->dl.dl_nr_running)
+ if (p == rq->curr)
pull_dl_task(rq);
#endif
}
--
--
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