Repository navigation
Commit 0b84735
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>1 parent 5079785 commit 0b84735
1 file changed
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7557 | 7557 | | |
7558 | 7558 | | |
7559 | 7559 | | |
7560 | | - | |
7561 | | - | |
7562 | | - | |
7563 | | - | |
7564 | | - | |
7565 | 7560 | | |
7566 | 7561 | | |
7567 | 7562 | | |
| |||
0 commit comments