Commit:     9ec3b77e11b9398ab40b492c4fde7d8aac04a718
Parent:     32525d022ad52a5c14e80e130260431e16e294b6
Author:     Dmitry Adamushko <[EMAIL PROTECTED]>
AuthorDate: Fri Jan 25 21:08:21 2008 +0100
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 21:08:21 2008 +0100

    sched: no need for 'affine wakeup' balancing
    No need to do a check for 'affine wakeup and passive balancing 
    in select_task_rq_fair() when task_cpu(p) == this_cpu.
    I guess, this part got missed upon introduction of per-sched_class
    select_task_rq() in try_to_wake_up().
    Signed-off-by: Dmitry Adamushko <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
 kernel/sched_fair.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index f881fc5..2208692 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -925,6 +925,9 @@ static int select_task_rq_fair(struct task_struct *p, int 
        this_cpu = smp_processor_id();
        new_cpu  = cpu;
+       if (cpu == this_cpu)
+               goto out_set_cpu;
        for_each_domain(this_cpu, sd) {
                if (cpu_isset(cpu, sd->span)) {
                        this_sd = sd;
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

Reply via email to