summaryrefslogtreecommitdiffstats
path: root/kernel/sched
diff options
context:
space:
mode:
authorseokhoon.yoon <iamyooon@gmail.com>2016-08-16 18:26:08 +0900
committerIngo Molnar <mingo@kernel.org>2016-09-05 13:29:44 +0200
commitefca03ecbe29a46c2c5ae539563b6326af9dcba7 (patch)
treeb06606cb02060c675f2b7d0b7e81a5b4aa55c12c /kernel/sched
parent2665621506e178a1f62e59200403c359c463ea5e (diff)
downloadlinux-stable-efca03ecbe29a46c2c5ae539563b6326af9dcba7.tar.gz
linux-stable-efca03ecbe29a46c2c5ae539563b6326af9dcba7.tar.bz2
linux-stable-efca03ecbe29a46c2c5ae539563b6326af9dcba7.zip
schedcore: Remove duplicated init_task's preempt_notifiers init
init_task's preempt_notifiers is initialized twice: 1) sched_init() -> INIT_HLIST_HEAD(&init_task.preempt_notifiers) 2) sched_init() -> init_idle(current,) <--- current task is init_task at this time -> __sched_fork(,current) -> INIT_HLIST_HEAD(&p->preempt_notifiers) I think the first one is unnecessary, so remove it. Signed-off-by: seokhoon.yoon <iamyooon@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1471339568-5790-1-git-send-email-iamyooon@gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched')
-rw-r--r--kernel/sched/core.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 7d602f508ca1..90b1961f6ea5 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -7554,10 +7554,6 @@ void __init sched_init(void)
set_load_weight(&init_task);
-#ifdef CONFIG_PREEMPT_NOTIFIERS
- INIT_HLIST_HEAD(&init_task.preempt_notifiers);
-#endif
-
/*
* The boot idle thread does lazy MMU switching as well:
*/