Skip to content

Commit 0b84735

Browse files
Cheng Chaoingomolnar
authored andcommitted
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

File tree

‎kernel/sched/core.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7557,11 +7557,6 @@ void __init sched_init(void)
75577557
atomic_inc(&init_mm.mm_count);
75587558
enter_lazy_tlb(&init_mm, current);
75597559

7560-
/*
7561-
* During early bootup we pretend to be a normal task:
7562-
*/
7563-
current->sched_class = &fair_sched_class;
7564-
75657560
/*
75667561
* Make us the idle thread. Technically, schedule() should not be
75677562
* called from this thread, however somewhere below it might be,

0 commit comments

Comments
 (0)