diff options
author | Cheng Chao <cs.os.kernel@gmail.com> | 2016-09-14 10:18:56 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-09-22 14:53:44 +0200 |
commit | 0b8473570ce1af3e80da05b59f9321f30253de4d (patch) | |
tree | 3104cc3086c4483760337f443ebae7f1f0530013 /kernel | |
parent | 50797851b4a594ba131fa5f147f4510e351bf081 (diff) | |
download | op-kernel-dev-0b8473570ce1af3e80da05b59f9321f30253de4d.zip op-kernel-dev-0b8473570ce1af3e80da05b59f9321f30253de4d.tar.gz |
sched/core: Remove unnecessary initialization in sched_init()
init_idle() is called immediately after:
current->sched_class = &fair_sched_class;
init_idle() sets:
current->sched_class = &idle_sched_class;
First assignment is superfluous.
Signed-off-by: Cheng Chao <cs.os.kernel@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1473819536-7398-1-git-send-email-cs.os.kernel@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched/core.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 860070f..c5f020c 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -7558,11 +7558,6 @@ void __init sched_init(void) enter_lazy_tlb(&init_mm, current); /* - * During early bootup we pretend to be a normal task: - */ - current->sched_class = &fair_sched_class; - - /* * Make us the idle thread. Technically, schedule() should not be * called from this thread, however somewhere below it might be, * but because we are the idle thread, we just pick up running again |