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, ...@@ -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. * Perform scheduler related setup for a newly forked process p.
* p is forked by current. It also does runqueue balancing. * p is forked by current. The cpu hotplug lock is held.
* The cpu hotplug lock is held.
*/ */
void fastcall sched_fork(task_t *p, unsigned long clone_flags) 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) ...@@ -1006,10 +1005,9 @@ void fastcall wake_up_new_task(task_t * p, unsigned long clone_flags)
rq->nr_running++; rq->nr_running++;
} }
set_need_resched(); set_need_resched();
} else { } else
/* Run child last */ /* Run child last */
__activate_task(p, rq); __activate_task(p, rq);
}
} else { } else {
runqueue_t *this_rq = cpu_rq(this_cpu); runqueue_t *this_rq = cpu_rq(this_cpu);
...@@ -3365,7 +3363,7 @@ EXPORT_SYMBOL_GPL(set_cpus_allowed); ...@@ -3365,7 +3363,7 @@ EXPORT_SYMBOL_GPL(set_cpus_allowed);
* Move (not current) task off this cpu, onto dest cpu. We're doing * 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() * 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 * 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 * So we race with normal scheduler movements, but that's OK, as long
* as the task is no longer on this CPU. * 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