sched/headers: Move the wake_up_if_idle() prototype to <linux/sched/idle.h>
authorIngo Molnar <mingo@kernel.org>
Wed, 1 Feb 2017 15:58:52 +0000 (16:58 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Mar 2017 07:42:41 +0000 (08:42 +0100)
No need to clutter <linux/sched.h> with this rarely used prototype.

Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/sched.h
include/linux/sched/idle.h

index 8a8252e9e0c797384df08e7cade3366923aa82e6..c30705c3e5532121d024591cd4b9c6b27eecdfaf 100644 (file)
@@ -1003,8 +1003,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 */
 
 
index 6aabc9968cba7048898e9b77c2357d74ce281773..72b6b6ab6354734d9056fcdde15404c15a04f5c3 100644 (file)
@@ -10,4 +10,6 @@ enum cpu_idle_type {
        CPU_MAX_IDLE_TYPES
 };
 
+extern void wake_up_if_idle(int cpu);
+
 #endif /* _LINUX_SCHED_IDLE_H */