Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=deac4ee65af4befb66b542e4a782e63da93b51a0
Commit:     deac4ee65af4befb66b542e4a782e63da93b51a0
Parent:     71fd37146385c8255bfd370f33ca81fe8c81e5a5
Author:     Sven-Thorsten Dietrich <[EMAIL PROTECTED]>
AuthorDate: Fri Aug 24 20:39:10 2007 +0200
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Fri Aug 24 20:39:10 2007 +0200

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
---
 kernel/sched.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index e95ff22..6798328 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,
        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;
 }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to