Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sched/headers: Prepare for new header dependencies before moving code to <linux/sched/idle.h>

We are going to split <linux/sched/idle.h> out of <linux/sched.h>, which
will have to be picked up from other headers and a couple of .c files.

Create a trivial placeholder <linux/sched/idle.h> file that just
maps to <linux/sched.h> to make this patch obviously correct and
bisectable.

Include the new header in the files that are going to need it.

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>

+13
+1
arch/x86/include/asm/mwait.h
··· 2 2 #define _ASM_X86_MWAIT_H 3 3 4 4 #include <linux/sched.h> 5 + #include <linux/sched/idle.h> 5 6 6 7 #include <asm/cpufeature.h> 7 8
+1
arch/x86/kernel/process.c
··· 7 7 #include <linux/prctl.h> 8 8 #include <linux/slab.h> 9 9 #include <linux/sched.h> 10 + #include <linux/sched/idle.h> 10 11 #include <linux/init.h> 11 12 #include <linux/export.h> 12 13 #include <linux/pm.h>
+1
drivers/cpuidle/driver.c
··· 11 11 #include <linux/mutex.h> 12 12 #include <linux/module.h> 13 13 #include <linux/sched.h> 14 + #include <linux/sched/idle.h> 14 15 #include <linux/cpuidle.h> 15 16 #include <linux/cpumask.h> 16 17 #include <linux/tick.h>
+6
include/linux/sched/idle.h
··· 1 + #ifndef _LINUX_SCHED_IDLE_H 2 + #define _LINUX_SCHED_IDLE_H 3 + 4 + #include <linux/sched.h> 5 + 6 + #endif /* _LINUX_SCHED_IDLE_H */
+2
include/linux/sched/topology.h
··· 3 3 4 4 #include <linux/sched.h> 5 5 6 + #include <linux/sched/idle.h> 7 + 6 8 #endif /* _LINUX_SCHED_TOPOLOGY_H */
+1
kernel/sched/idle.c
··· 2 2 * Generic entry point for the idle threads 3 3 */ 4 4 #include <linux/sched.h> 5 + #include <linux/sched/idle.h> 5 6 #include <linux/cpu.h> 6 7 #include <linux/cpuidle.h> 7 8 #include <linux/cpuhotplug.h>
+1
kernel/smp.c
··· 17 17 #include <linux/smp.h> 18 18 #include <linux/cpu.h> 19 19 #include <linux/sched.h> 20 + #include <linux/sched/idle.h> 20 21 #include <linux/hypervisor.h> 21 22 22 23 #include "smpboot.h"