From: Sven-Thorsten Dietrich <sven@thebigcorporation.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: RT Users List <linux-rt-users@vger.kernel.org>,
LKML <Linux-kernel@vger.kernel.org>,
Peter Williams <pwil3058@bigpond.net.au>
Subject: [PATCH RT] - trivial branch in scheduler.
Date: Fri, 24 Aug 2007 01:19:08 -0700 [thread overview]
Message-ID: <1187943548.16573.10.camel@sx.thebigcorporation.com> (raw)
Hi Ingo,
the trivial code is in various RT patches as well as in 2.6.23-rc git's
scheduler.
Thanks
Sven
Remove trivial conditional branch in Linux RT CFS
scheduler's can_migrate_task function.
signed-off-by: Sven-Thorsten Dietrich <sven@thebigcorporation.com>
Index: linux-2.6.22/kernel/sched.c
===================================================================
--- linux-2.6.22.orig/kernel/sched.c
+++ linux-2.6.22/kernel/sched.c
@@ -2603,12 +2603,6 @@ int can_migrate_task(struct task_struct
if (task_running(rq, p))
return 0;
- /*
- * Aggressive migration if too many balance attempts have failed:
- */
- if (sd->nr_balance_failed > sd->cache_nice_tries)
- return 1;
-
return 1;
}
next reply other threads:[~2007-08-24 8:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-24 8:19 Sven-Thorsten Dietrich [this message]
2007-08-24 8:32 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1187943548.16573.10.camel@sx.thebigcorporation.com \
--to=sven@thebigcorporation.com \
--cc=Linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=pwil3058@bigpond.net.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®