Skip to content

Commit 370c913

Browse files
committed
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 <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>
1 parent 03441a3 commit 370c913

5 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎include/linux/sched/nohz.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#ifndef _LINUX_SCHED_NOHZ_H
2+
#define _LINUX_SCHED_NOHZ_H
3+
4+
#include <linux/sched.h>
5+
6+
#endif /* _LINUX_SCHED_NOHZ_H */

‎kernel/sched/sched.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <linux/sched/mm.h>
1111
#include <linux/sched/cpufreq.h>
1212
#include <linux/sched/stat.h>
13+
#include <linux/sched/nohz.h>
1314
#include <linux/u64_stats_sync.h>
1415
#include <linux/sched/deadline.h>
1516
#include <linux/kernel_stat.h>

‎kernel/time/hrtimer.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
#include <linux/sched/sysctl.h>
4848
#include <linux/sched/rt.h>
4949
#include <linux/sched/deadline.h>
50+
#include <linux/sched/nohz.h>
5051
#include <linux/timer.h>
5152
#include <linux/freezer.h>
5253

‎kernel/time/tick-sched.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <linux/sched/signal.h>
2323
#include <linux/sched/clock.h>
2424
#include <linux/sched/stat.h>
25+
#include <linux/sched/nohz.h>
2526
#include <linux/module.h>
2627
#include <linux/irq_work.h>
2728
#include <linux/posix-timers.h>

‎kernel/time/timer.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#include <linux/irq_work.h>
4141
#include <linux/sched/signal.h>
4242
#include <linux/sched/sysctl.h>
43+
#include <linux/sched/nohz.h>
4344
#include <linux/slab.h>
4445
#include <linux/compat.h>
4546

0 commit comments

Comments
 (0)