lkml.org 
[lkml]   [2016]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] sched/core: remove unnecessary codes of sched_init
Date
init_idle() is called immediately after current->sched_class
= &fair_sched_class; and init_idle() sets 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 2fd71e6..91a62d9 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
\
 
 \ /
  Last update: 2016-09-17 09:58    [W:0.023 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site