Skip to content

Commit 0b84735

Browse files
Cheng ChaoIngo Molnar
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 <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 5079785 commit 0b84735

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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)