No need to clutter <linux/sched.h> with this rarely used prototype.
Cc: Peter Zijlstra <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
---
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