lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 19 Nov 2007 11:34:10 -0500 From: Gregory Haskins <ghaskins@...ell.com> To: Steven Rostedt <rostedt@...dmis.org>, "LKML <linux-kernel"@vger.kernel.org Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>, Christoph Lameter <clameter@....com>, Ingo Molnar <mingo@...e.hu>, Gregory Haskins <ghaskins@...ell.com> Subject: [PATCH] RT: restore the migratable conditional (This applies to the end of Steven's "v3" series http://lkml.org/lkml/2007/11/17/10) ---------- We don't need to bother searching if the task cannot be migrated Signed-off-by: Gregory Haskins <ghaskins@...ell.com> --- kernel/sched_rt.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index 9c640c8..0026f11 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c @@ -173,7 +173,8 @@ static int select_task_rq_rt(struct task_struct *p, int sync) * that is just being woken and probably will have * cold cache anyway. */ - if (unlikely(rt_task(rq->curr))) { + if (unlikely(rt_task(rq->curr)) && + (p->nr_cpus_allowed > 1)) { int cpu = find_lowest_rq(p); return (cpu == -1) ? task_cpu(p) : cpu; - 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