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


Groups > linux.kernel > #1574704 > unrolled thread

[PATCH 08/89] sched/idle: Move wake_up_if_idle prototype to <linux/sched/idle.h>

Started byIngo Molnar <mingo@kernel.org>
First post2017-02-06 14:40 +0100
Last post2017-02-06 14:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 08/89] sched/idle: Move wake_up_if_idle prototype to <linux/sched/idle.h> Ingo Molnar <mingo@kernel.org> - 2017-02-06 14:40 +0100

#1574704 — [PATCH 08/89] sched/idle: Move wake_up_if_idle prototype to <linux/sched/idle.h>

FromIngo Molnar <mingo@kernel.org>
Date2017-02-06 14:40 +0100
Subject[PATCH 08/89] sched/idle: Move wake_up_if_idle prototype to <linux/sched/idle.h>
Message-ID<t7RGr-5x6-57@gated-at.bofh.it>
No need to clutter <linux/sched.h> with this rarely used prototype.

Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 include/linux/sched.h      | 2 --
 include/linux/sched/idle.h | 2 ++
 kernel/smp.c               | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/linux/sched.h b/include/linux/sched.h
index 312796d25a05..ebc11bb42c49 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1011,8 +1011,6 @@ extern void wake_q_add(struct wake_q_head *head,
 		       struct task_struct *task);
 extern void wake_up_q(struct wake_q_head *head);
 
-extern void wake_up_if_idle(int cpu);
-
 struct io_context;			/* See blkdev.h */
 
 
diff --git a/include/linux/sched/idle.h b/include/linux/sched/idle.h
index 14640f5798dc..6bcb32118ab0 100644
--- a/include/linux/sched/idle.h
+++ b/include/linux/sched/idle.h
@@ -8,4 +8,6 @@ enum cpu_idle_type {
 	CPU_MAX_IDLE_TYPES
 };
 
+extern void wake_up_if_idle(int cpu);
+
 #endif /* _LINUX_SCHED_IDLE_H */
diff --git a/kernel/smp.c b/kernel/smp.c
index 77fcdb9f2775..a817769b53c0 100644
--- a/kernel/smp.c
+++ b/kernel/smp.c
@@ -17,6 +17,7 @@
 #include <linux/smp.h>
 #include <linux/cpu.h>
 #include <linux/sched.h>
+#include <linux/sched/idle.h>
 #include <linux/hypervisor.h>
 
 #include "smpboot.h"
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web