aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJosh Aas <josha@sgi.com>2005-01-07 21:48:10 -0800
committerLinus Torvalds <torvalds@evo.osdl.org>2005-01-07 21:48:10 -0800
commit0615dec53294aacca93beab1a07451f517ae5737 (patch)
treec37fc663a857bda50983f9da027483312ae37e4c /kernel
parent0cc0f9fcae0fc4deda39d8a47cd24962d1d64a08 (diff)
downloadhistory-0615dec53294aacca93beab1a07451f517ae5737.tar.gz
[PATCH] sched: remove outdated/misleading comments
This patch removes two outdated/misleading comments from the CPU scheduler. 1) The first comment removed is simply incorrect. The function it comments on is not used for what the comments says it is anymore. 2) The second comment is a leftover from when the "if" block it comments on contained a goto. It does not any more, and the comment doesn't make sense. There isn't really a reason to add different comments, though someone might feel differently in the case of the second one. I'll leave adding a comment to anybody who wants to - more important to just get rid of them now. Signed-off-by: Josh Aas <josha@sgi.com> Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index cd4776363889fe..48892437de4b3b 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -601,11 +601,6 @@ static void requeue_task(struct task_struct *p, prio_array_t *array)
list_move_tail(&p->run_list, array->queue + p->prio);
}
-/*
- * Used by the migration code - we pull tasks from the head of the
- * remote queue so we want these tasks to show up at the head of the
- * local queue:
- */
static inline void enqueue_task_head(struct task_struct *p, prio_array_t *array)
{
list_add(&p->run_list, array->queue + p->prio);
@@ -2573,10 +2568,7 @@ need_resched_nonpreemptible:
if (unlikely(prev->flags & PF_DEAD))
prev->state = EXIT_DEAD;
- /*
- * if entering off of a kernel preemption go straight
- * to picking the next task.
- */
+
switch_count = &prev->nivcsw;
if (prev->state && !(preempt_count() & PREEMPT_ACTIVE)) {
switch_count = &prev->nvcsw;