Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175587
b: refs/heads/master
c: fb58bac
h: refs/heads/master
i:
  175585: 693ff81
  175583: 458168c
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Dec 9, 2009
1 parent e78c69e commit 146316b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6cecd084d0fd27bb1e498e2829fd45846d806856
refs/heads/master: fb58bac5c75bfff8bbf7d02071a10a62f32fe28b
9 changes: 2 additions & 7 deletions trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,6 @@ static int select_task_rq_fair(struct task_struct *p, int sd_flag, int wake_flag
new_cpu = prev_cpu;
}

rcu_read_lock();
for_each_domain(cpu, tmp) {
/*
* If power savings logic is enabled for a domain, see if we
Expand Down Expand Up @@ -1484,10 +1483,8 @@ static int select_task_rq_fair(struct task_struct *p, int sd_flag, int wake_flag
update_shares(tmp);
}

if (affine_sd && wake_affine(affine_sd, p, sync)) {
new_cpu = cpu;
goto out;
}
if (affine_sd && wake_affine(affine_sd, p, sync))
return cpu;

while (sd) {
int load_idx = sd->forkexec_idx;
Expand Down Expand Up @@ -1528,8 +1525,6 @@ static int select_task_rq_fair(struct task_struct *p, int sd_flag, int wake_flag
/* while loop will break here if sd == NULL */
}

out:
rcu_read_unlock();
return new_cpu;
}
#endif /* CONFIG_SMP */
Expand Down

0 comments on commit 146316b

Please sign in to comment.