sched/headers: Prepare for new header dependencies before moving code to <linux/sched/nohz.h> We are going to split <linux/sched/nohz.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/nohz.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 <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Signed-off-by: Ingo Molnar <[email protected]>
diff --git a/include/linux/sched/nohz.h b/include/linux/sched/nohz.h new file mode 100644 index 0000000..fe6caf0 --- /dev/null +++ b/include/linux/sched/nohz.h
@@ -0,0 +1,6 @@ +#ifndef _LINUX_SCHED_NOHZ_H +#define _LINUX_SCHED_NOHZ_H + +#include <linux/sched.h> + +#endif /* _LINUX_SCHED_NOHZ_H */
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 6c8a1db..5979f47c 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h
@@ -10,6 +10,7 @@ #include <linux/sched/mm.h> #include <linux/sched/cpufreq.h> #include <linux/sched/stat.h> +#include <linux/sched/nohz.h> #include <linux/u64_stats_sync.h> #include <linux/sched/deadline.h> #include <linux/kernel_stat.h>
diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index df512e8..aed2207 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c
@@ -47,6 +47,7 @@ #include <linux/sched/sysctl.h> #include <linux/sched/rt.h> #include <linux/sched/deadline.h> +#include <linux/sched/nohz.h> #include <linux/timer.h> #include <linux/freezer.h>
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 29d79b1..7fe53be 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c
@@ -22,6 +22,7 @@ #include <linux/sched/signal.h> #include <linux/sched/clock.h> #include <linux/sched/stat.h> +#include <linux/sched/nohz.h> #include <linux/module.h> #include <linux/irq_work.h> #include <linux/posix-timers.h>
diff --git a/kernel/time/timer.c b/kernel/time/timer.c index f4465d2..d7999cb 100644 --- a/kernel/time/timer.c +++ b/kernel/time/timer.c
@@ -40,6 +40,7 @@ #include <linux/irq_work.h> #include <linux/sched/signal.h> #include <linux/sched/sysctl.h> +#include <linux/sched/nohz.h> #include <linux/slab.h> #include <linux/compat.h>