Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108213
b: refs/heads/master
c: e26b33e
h: refs/heads/master
i:
  108211: 80cd875
v: v3
  • Loading branch information
Ingo Molnar committed Aug 11, 2008
1 parent fef6854 commit bbc4d07
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 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: cf206bffbb7542df54043fad9898113172af99d8
refs/heads/master: e26b33e9552c29c1d3fe67dc602c6264c29f5dc7
5 changes: 2 additions & 3 deletions trunk/kernel/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,8 @@ static int __cpuinit _cpu_up(unsigned int cpu, int tasks_frozen)
goto out_notify;
BUG_ON(!cpu_online(cpu));

cpu_set(cpu, cpu_active_map);

/* Now call notifier in preparation. */
raw_notifier_call_chain(&cpu_chain, CPU_ONLINE | mod, hcpu);

Expand Down Expand Up @@ -383,9 +385,6 @@ int __cpuinit cpu_up(unsigned int cpu)

err = _cpu_up(cpu, 0);

if (cpu_online(cpu))
cpu_set(cpu, cpu_active_map);

out:
cpu_maps_update_done();
return err;
Expand Down
19 changes: 12 additions & 7 deletions trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -1442,18 +1442,23 @@ __load_balance_iterator(struct cfs_rq *cfs_rq, struct list_head *next)
struct task_struct *p = NULL;
struct sched_entity *se;

while (next != &cfs_rq->tasks) {
if (next == &cfs_rq->tasks)
return NULL;

/* Skip over entities that are not tasks */
do {
se = list_entry(next, struct sched_entity, group_node);
next = next->next;
} while (next != &cfs_rq->tasks && !entity_is_task(se));

/* Skip over entities that are not tasks */
if (entity_is_task(se)) {
p = task_of(se);
break;
}
}
if (next == &cfs_rq->tasks)
return NULL;

cfs_rq->balance_iterator = next;

if (entity_is_task(se))
p = task_of(se);

return p;
}

Expand Down

0 comments on commit bbc4d07

Please sign in to comment.