linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Subject: [PATCH] SCHEDULER: remove unnecessary code of sched_init()
@ 2016-08-30 11:36 cheng chao
  0 siblings, 0 replies; only message in thread
From: cheng chao @ 2016-08-30 11:36 UTC (permalink / raw)
  To: mingo, peterz; +Cc: linux-kernel, cheng chao

init_idle will set current->sched_class = &idle_sched_class

Signed-off-by: cheng chao <chengchao@kedacom.com>
---
 kernel/sched/core.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 556cb07..2f7c08d 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -7542,11 +7542,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
-- 
2.4.11

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-30 11:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-30 11:36 [PATCH] Subject: [PATCH] SCHEDULER: remove unnecessary code of sched_init() cheng chao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).