浏览代码

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>
Ingo Molnar 8 年之前
父节点
当前提交
370c91355c
共有 5 个文件被更改,包括 10 次插入0 次删除
  1. 6 0
      include/linux/sched/nohz.h
  2. 1 0
      kernel/sched/sched.h
  3. 1 0
      kernel/time/hrtimer.c
  4. 1 0
      kernel/time/tick-sched.c
  5. 1 0
      kernel/time/timer.c

+ 6 - 0
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 */

+ 1 - 0
kernel/sched/sched.h

@@ -10,6 +10,7 @@
 #include <linux/sched/mm.h>
 #include <linux/sched/mm.h>
 #include <linux/sched/cpufreq.h>
 #include <linux/sched/cpufreq.h>
 #include <linux/sched/stat.h>
 #include <linux/sched/stat.h>
+#include <linux/sched/nohz.h>
 #include <linux/u64_stats_sync.h>
 #include <linux/u64_stats_sync.h>
 #include <linux/sched/deadline.h>
 #include <linux/sched/deadline.h>
 #include <linux/kernel_stat.h>
 #include <linux/kernel_stat.h>

+ 1 - 0
kernel/time/hrtimer.c

@@ -47,6 +47,7 @@
 #include <linux/sched/sysctl.h>
 #include <linux/sched/sysctl.h>
 #include <linux/sched/rt.h>
 #include <linux/sched/rt.h>
 #include <linux/sched/deadline.h>
 #include <linux/sched/deadline.h>
+#include <linux/sched/nohz.h>
 #include <linux/timer.h>
 #include <linux/timer.h>
 #include <linux/freezer.h>
 #include <linux/freezer.h>
 
 

+ 1 - 0
kernel/time/tick-sched.c

@@ -22,6 +22,7 @@
 #include <linux/sched/signal.h>
 #include <linux/sched/signal.h>
 #include <linux/sched/clock.h>
 #include <linux/sched/clock.h>
 #include <linux/sched/stat.h>
 #include <linux/sched/stat.h>
+#include <linux/sched/nohz.h>
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/irq_work.h>
 #include <linux/irq_work.h>
 #include <linux/posix-timers.h>
 #include <linux/posix-timers.h>

+ 1 - 0
kernel/time/timer.c

@@ -40,6 +40,7 @@
 #include <linux/irq_work.h>
 #include <linux/irq_work.h>
 #include <linux/sched/signal.h>
 #include <linux/sched/signal.h>
 #include <linux/sched/sysctl.h>
 #include <linux/sched/sysctl.h>
+#include <linux/sched/nohz.h>
 #include <linux/slab.h>
 #include <linux/slab.h>
 #include <linux/compat.h>
 #include <linux/compat.h>