diff options
author | Dmitry Adamushko <dmitry.adamushko@gmail.com> | 2007-10-15 11:00:08 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:08 -0400 |
commit | 4530d7ab0fb8d5056b68c376949e2d5c4db7817e (patch) | |
tree | e5ba2d7fde1d56948c5517442a7e90815f96ef82 /kernel/sched.c | |
parent | 87fefa381ef27f46c1182622ea01eb9504cd2e24 (diff) |
sched: simplify sched_class::yield_task()
the 'p' (task_struct) parameter in the sched_class :: yield_task() is
redundant as the caller is always the 'current'. Get rid of it.
text data bss dec hex filename
24341 2734 20 27095 69d7 sched.o.before
24330 2734 20 27084 69cc sched.o.after
Signed-off-by: Dmitry Adamushko <dmitry.adamushko@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 3b104635a8ea..e1f784f4b4db 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -4537,7 +4537,7 @@ asmlinkage long sys_sched_yield(void) | |||
4537 | struct rq *rq = this_rq_lock(); | 4537 | struct rq *rq = this_rq_lock(); |
4538 | 4538 | ||
4539 | schedstat_inc(rq, yld_cnt); | 4539 | schedstat_inc(rq, yld_cnt); |
4540 | current->sched_class->yield_task(rq, current); | 4540 | current->sched_class->yield_task(rq); |
4541 | 4541 | ||
4542 | /* | 4542 | /* |
4543 | * Since we are going to call schedule() anyway, there's | 4543 | * Since we are going to call schedule() anyway, there's |