sched/core: Remove unnecessary initialization in sched_init()
authorCheng Chao <cs.os.kernel@gmail.com>
Wed, 14 Sep 2016 02:18:56 +0000 (10:18 +0800)
committerIngo Molnar <mingo@kernel.org>
Thu, 22 Sep 2016 12:53:44 +0000 (14:53 +0200)
commit0b8473570ce1af3e80da05b59f9321f30253de4d
tree3104cc3086c4483760337f443ebae7f1f0530013
parent50797851b4a594ba131fa5f147f4510e351bf081
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>
kernel/sched/core.c