Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163001
b: refs/heads/master
c: d7c33c4
h: refs/heads/master
i:
  162999: 07a47f9
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Sep 15, 2009
1 parent 3eb35b8 commit bcb8af3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 83f54960c11a14942ab00b54c51e91906b9d8235
refs/heads/master: d7c33c4930f569caf6b2ece597432853c4151a45
5 changes: 2 additions & 3 deletions trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,6 @@ find_idlest_cpu(struct sched_group *group, struct task_struct *p, int this_cpu)
*/
static int select_task_rq_fair(struct task_struct *p, int flag, int sync)
{
struct task_struct *t = current;
struct sched_domain *tmp, *sd = NULL;
int cpu = smp_processor_id();
int prev_cpu = task_cpu(p);
Expand Down Expand Up @@ -1393,13 +1392,13 @@ static int select_task_rq_fair(struct task_struct *p, int flag, int sync)
continue;
}

group = find_idlest_group(sd, t, cpu);
group = find_idlest_group(sd, p, cpu);
if (!group) {
sd = sd->child;
continue;
}

new_cpu = find_idlest_cpu(group, t, cpu);
new_cpu = find_idlest_cpu(group, p, cpu);
if (new_cpu == -1 || new_cpu == cpu) {
/* Now try balancing at a lower domain level of cpu */
sd = sd->child;
Expand Down

0 comments on commit bcb8af3

Please sign in to comment.