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

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

<linux/nmi.h> already includes <linux/sched.h>.

Include the <linux/nmi.h> 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>
This commit is contained in:
Ingo Molnar 2017-02-08 18:51:31 +01:00
parent 8703e8a465
commit 38b8d208a4
15 changed files with 17 additions and 0 deletions

View File

@ -16,6 +16,7 @@
#include <linux/profile.h> #include <linux/profile.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/nmi.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/efi.h> #include <linux/efi.h>
#include <linux/timex.h> #include <linux/timex.h>

View File

@ -19,6 +19,7 @@
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/efi.h> #include <linux/efi.h>
#include <linux/nmi.h>
#include <linux/genalloc.h> #include <linux/genalloc.h>
#include <linux/gfp.h> #include <linux/gfp.h>
#include <asm/page.h> #include <asm/page.h>

View File

@ -10,6 +10,7 @@
#include <linux/irq.h> #include <linux/irq.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/nmi.h>
void do_after_copyback(void) void do_after_copyback(void)
{ {

View File

@ -21,6 +21,8 @@
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/gfp.h> #include <linux/gfp.h>
#include <linux/bootmem.h> #include <linux/bootmem.h>
#include <linux/nmi.h>
#include <asm/fixmap.h> #include <asm/fixmap.h>
#include <asm/pvclock.h> #include <asm/pvclock.h>

View File

@ -18,6 +18,7 @@
#include <linux/smp.h> #include <linux/smp.h>
#include <linux/irq_work.h> #include <linux/irq_work.h>
#include <linux/tick.h> #include <linux/tick.h>
#include <linux/nmi.h>
#include <asm/paravirt.h> #include <asm/paravirt.h>
#include <asm/desc.h> #include <asm/desc.h>

View File

@ -19,6 +19,7 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/hdreg.h> #include <linux/hdreg.h>
#include <linux/ide.h> #include <linux/ide.h>
#include <linux/nmi.h>
#include <linux/scatterlist.h> #include <linux/scatterlist.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>

View File

@ -36,6 +36,7 @@
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/nmi.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/mtd/mtd.h> #include <linux/mtd/mtd.h>
#include <linux/mtd/nand.h> #include <linux/mtd/nand.h>

View File

@ -48,6 +48,8 @@
*/ */
#include <linux/fb.h> #include <linux/fb.h>
#include <linux/nmi.h>
#include "nv_type.h" #include "nv_type.h"
#include "nv_proto.h" #include "nv_proto.h"
#include "nv_dma.h" #include "nv_dma.h"

View File

@ -27,6 +27,7 @@
#include <linux/bootmem.h> #include <linux/bootmem.h>
#include <linux/acpi.h> #include <linux/acpi.h>
#include <linux/tty.h> #include <linux/tty.h>
#include <linux/nmi.h>
#include <linux/percpu.h> #include <linux/percpu.h>
#include <linux/kmod.h> #include <linux/kmod.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>

View File

@ -49,6 +49,7 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/kgdb.h> #include <linux/kgdb.h>
#include <linux/kdb.h> #include <linux/kdb.h>
#include <linux/nmi.h>
#include <linux/pid.h> #include <linux/pid.h>
#include <linux/smp.h> #include <linux/smp.h>
#include <linux/mm.h> #include <linux/mm.h>

View File

@ -21,6 +21,7 @@
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/mount.h> #include <linux/mount.h>
#include <linux/pm.h> #include <linux/pm.h>
#include <linux/nmi.h>
#include <linux/console.h> #include <linux/console.h>
#include <linux/cpu.h> #include <linux/cpu.h>
#include <linux/freezer.h> #include <linux/freezer.h>

View File

@ -22,6 +22,7 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/bootmem.h> #include <linux/bootmem.h>
#include <linux/nmi.h>
#include <linux/syscalls.h> #include <linux/syscalls.h>
#include <linux/console.h> #include <linux/console.h>
#include <linux/highmem.h> #include <linux/highmem.h>

View File

@ -58,6 +58,7 @@
#include <linux/percpu.h> #include <linux/percpu.h>
#include <linux/ktime.h> #include <linux/ktime.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/nmi.h>
#include <linux/sched/clock.h> #include <linux/sched/clock.h>
#include <linux/static_key.h> #include <linux/static_key.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>

View File

@ -17,6 +17,7 @@
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/kernel_stat.h> #include <linux/kernel_stat.h>
#include <linux/percpu.h> #include <linux/percpu.h>
#include <linux/nmi.h>
#include <linux/profile.h> #include <linux/profile.h>
#include <linux/sched/signal.h> #include <linux/sched/signal.h>
#include <linux/sched/clock.h> #include <linux/sched/clock.h>

View File

@ -14,6 +14,7 @@
#include <linux/percpu.h> #include <linux/percpu.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/nmi.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/sched/loadavg.h> #include <linux/sched/loadavg.h>
#include <linux/syscore_ops.h> #include <linux/syscore_ops.h>