lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-0b8473570ce1af3e80da05b59f9321f30253de4d@git.kernel.org>
Date:   Thu, 22 Sep 2016 06:58:56 -0700
From:   tip-bot for Cheng Chao <tipbot@...or.com>
To:     linux-tip-commits@...r.kernel.org
Cc:     tglx@...utronix.de, cs.os.kernel@...il.com, mingo@...nel.org,
        peterz@...radead.org, hpa@...or.com, torvalds@...ux-foundation.org,
        linux-kernel@...r.kernel.org
Subject: [tip:sched/core] sched/core: Remove unnecessary initialization in
 sched_init()

Commit-ID:  0b8473570ce1af3e80da05b59f9321f30253de4d
Gitweb:     http://git.kernel.org/tip/0b8473570ce1af3e80da05b59f9321f30253de4d
Author:     Cheng Chao <cs.os.kernel@...il.com>
AuthorDate: Wed, 14 Sep 2016 10:18:56 +0800
Committer:  Ingo Molnar <mingo@...nel.org>
CommitDate: Thu, 22 Sep 2016 14:53:44 +0200

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@...il.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Link: http://lkml.kernel.org/r/1473819536-7398-1-git-send-email-cs.os.kernel@gmail.com
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
 kernel/sched/core.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 860070f..c5f020c 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -7558,11 +7558,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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ