diff options
author | Sven-Thorsten Dietrich <sven@thebigcorporation.com> | 2007-08-24 14:39:10 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-08-24 14:39:10 -0400 |
commit | deac4ee65af4befb66b542e4a782e63da93b51a0 (patch) | |
tree | 459381799e2c6fbb07d8a6b669f25f562c24f9d5 /kernel | |
parent | 71fd37146385c8255bfd370f33ca81fe8c81e5a5 (diff) |
sched: simplify can_migrate_task()
Remove trivial conditional branch in Linux scheduler's
can_migrate_task() function.
text data bss dec hex filename
34770 2998 24 37792 93a0 sched.o.before
34757 2998 24 37779 9393 sched.o.after
Signed-off-by: Sven-Thorsten Dietrich <sven@thebigcorporation.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index e95ff22ed174..6798328a2e0e 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -2180,12 +2180,6 @@ int can_migrate_task(struct task_struct *p, struct rq *rq, int this_cpu, | |||
2180 | if (task_running(rq, p)) | 2180 | if (task_running(rq, p)) |
2181 | return 0; | 2181 | return 0; |
2182 | 2182 | ||
2183 | /* | ||
2184 | * Aggressive migration if too many balance attempts have failed: | ||
2185 | */ | ||
2186 | if (sd->nr_balance_failed > sd->cache_nice_tries) | ||
2187 | return 1; | ||
2188 | |||
2189 | return 1; | 2183 | return 1; |
2190 | } | 2184 | } |
2191 | 2185 | ||