Commit ce9bb66d authored by Ingo Molnar's avatar Ingo Molnar Committed by Linus Torvalds

[PATCH] sched: misc cleanups #2

 - fix two stale comments
 - cleanup
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 49717553
......@@ -872,8 +872,7 @@ static int find_idlest_cpu(struct task_struct *p, int this_cpu,
/*
* Perform scheduler related setup for a newly forked process p.
* p is forked by current. It also does runqueue balancing.
* The cpu hotplug lock is held.
* p is forked by current. The cpu hotplug lock is held.
*/
void fastcall sched_fork(task_t *p, unsigned long clone_flags)
{
......@@ -1006,10 +1005,9 @@ void fastcall wake_up_new_task(task_t * p, unsigned long clone_flags)
rq->nr_running++;
}
set_need_resched();
} else {
} else
/* Run child last */
__activate_task(p, rq);
}
} else {
runqueue_t *this_rq = cpu_rq(this_cpu);
......@@ -3365,7 +3363,7 @@ EXPORT_SYMBOL_GPL(set_cpus_allowed);
* Move (not current) task off this cpu, onto dest cpu. We're doing
* this because either it can't run here any more (set_cpus_allowed()
* away from this CPU, or CPU going down), or because we're
* attempting to rebalance this task on exec (sched_balance_exec).
* attempting to rebalance this task on exec (sched_exec).
*
* So we race with normal scheduler movements, but that's OK, as long
* as the task is no longer on this CPU.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment