summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2002-02-12 19:53:21 +0100
committerIngo Molnar <mingo@elte.hu>2002-02-12 19:53:21 +0100
commit09e413882577e34e7cbe328e99d564668c50d34b (patch)
tree037853a8c919c8d2fa528a4c553bf6afccc4494f /kernel
parentf5f896ddebb2e5dc0c5f4d7c9b63091a5f84cb97 (diff)
optimization, cleanup: switch_to(3 parameter) => switch_to(2 parameter).
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 08e1293ab92a..12c21878cd0a 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -435,17 +435,8 @@ static inline void context_switch(task_t *prev, task_t *next)
mmdrop(oldmm);
}
- /*
- * Here we just switch the register state and the stack. There are
- * 3 processes affected by a context switch:
- *
- * prev ==> .... ==> (last => next)
- *
- * It's the 'much more previous' 'prev' that is on next's stack,
- * but prev is set to (the just run) 'last' process by switch_to().
- * This might sound slightly confusing but makes tons of sense.
- */
- switch_to(prev, next, prev);
+ /* Here we just switch the register state and the stack. */
+ switch_to(prev, next);
}
unsigned long nr_running(void)