Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1482881

[PATCH v2] sched/core: remove unnecessary initialization in sched_init()

From Cheng Chao <cs.os.kernel@gmail.com>
Newsgroups linux.kernel
Subject [PATCH v2] sched/core: remove unnecessary initialization in sched_init()
Date 2016-09-14 04:30 +0200
Message-ID <sh87w-2fH-1@gated-at.bofh.it> (permalink)
References <sh7XQ-2c8-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


init_idle() is called immediately after current->sched_class
= &fair_sched_class, init_idle() sets current->sched_class
= &idle_sched_class.

Signed-off-by: Cheng Chao <cs.os.kernel@gmail.com>
Cc: stable@vger.kernel.org
---
 kernel/sched/core.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index a0086a5..ed4f4fe 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -7557,11 +7557,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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] sched/core: emove unnecessary initialization in sched_init() Cheng Chao <cs.os.kernel@gmail.com> - 2016-09-14 04:20 +0200
  [PATCH v2] sched/core: remove unnecessary initialization in sched_init() Cheng Chao <cs.os.kernel@gmail.com> - 2016-09-14 04:30 +0200
    Re: [PATCH v2] sched/core: remove unnecessary initialization in  sched_init() Cheng Chao <cs.os.kernel@gmail.com> - 2016-09-18 04:00 +0200
  [tip:sched/core] sched/core: Remove unnecessary initialization in  sched_init() tip-bot for Cheng Chao <tipbot@zytor.com> - 2016-09-22 16:00 +0200

csiph-web