summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2004-08-23 21:07:30 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-23 21:07:30 -0700
commitce9bb66df0ef6e503e860238b934205b4884be03 (patch)
treea3c10daa612e1b2d9ec4828c9abe2fe706989628
parent49717553aec00cc22dd4917eb451e680c405b51b (diff)
[PATCH] sched: misc cleanups #2
- fix two stale comments - cleanup Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--kernel/sched.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 8e9fbee142df..02c832395926 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -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.