Skip to content

Commit

Permalink
sched: no need for 'affine wakeup' balancing
Browse files Browse the repository at this point in the history
No need to do a check for 'affine wakeup and passive balancing possibilities'
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 <dmitry.adamushko@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Dmitry Adamushko authored and Ingo Molnar committed Jan 25, 2008
1 parent 32525d0 commit 9ec3b77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,9 @@ static int select_task_rq_fair(struct task_struct *p, int sync)
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;
Expand Down

0 comments on commit 9ec3b77

Please sign in to comment.