But first introduce a trivial header and update usage sites.
Unified · Split
| @@ -29,6 +29,7 @@ · 28 unmodified lines | ||
| 29 | 29 | #include <linux/bootmem.h> |
| 30 | 30 | #include <linux/console.h> |
| 31 | 31 | #include <linux/delay.h> |
| 32 | +#include <linux/cpu.h> | |
| 32 | 33 | #include <linux/kernel.h> |
| 33 | 34 | #include <linux/reboot.h> |
| 34 | 35 | #include <linux/sched.h> |
| @@ -17,6 +17,7 @@ · 16 unmodified lines | ||
| 17 | 17 | #include <linux/sched/debug.h> |
| 18 | 18 | #include <linux/sched/task_stack.h> |
| 19 | 19 | #include <linux/mm.h> |
| 20 | +#include <linux/cpu.h> | |
| 20 | 21 | |
| 21 | 22 | #include <asm/page.h> |
| 22 | 23 | #include <asm/processor.h> |
| @@ -19,6 +19,7 @@ · 18 unmodified lines | ||
| 19 | 19 | #include <linux/export.h> |
| 20 | 20 | #include <linux/sched.h> |
| 21 | 21 | #include <linux/sched/task.h> |
| 22 | +#include <linux/cpu.h> | |
| 22 | 23 | #include <linux/kernel.h> |
| 23 | 24 | #include <linux/memblock.h> |
| 24 | 25 | #include <linux/mm.h> |
| @@ -30,6 +30,8 @@ struct cpu { · 29 unmodified lines | ||
| 30 | 30 | |
| 31 | 31 | extern void boot_cpu_init(void); |
| 32 | 32 | extern void boot_cpu_state_init(void); |
| 33 | +extern void cpu_init(void); | |
| 34 | +extern void trap_init(void); | |
| 33 | 35 | |
| 34 | 36 | extern int register_cpu(struct cpu *cpu, int num); |
| 35 | 37 | extern struct device *get_cpu_device(unsigned cpu); |
| @@ -0,0 +1,6 @@ | ||
| 1 | +#ifndef _LINUX_SCHED_INIT_H | |
| 2 | +#define _LINUX_SCHED_INIT_H | |
| 3 | + | |
| 4 | +#include <linux/sched.h> | |
| 5 | + | |
| 6 | +#endif /* _LINUX_SCHED_INIT_H */ | |
| @@ -63,6 +63,7 @@ · 62 unmodified lines | ||
| 63 | 63 | #include <linux/device.h> |
| 64 | 64 | #include <linux/kthread.h> |
| 65 | 65 | #include <linux/sched.h> |
| 66 | +#include <linux/sched/init.h> | |
| 66 | 67 | #include <linux/signal.h> |
| 67 | 68 | #include <linux/idr.h> |
| 68 | 69 | #include <linux/kgdb.h> |
| @@ -18,6 +18,7 @@ · 17 unmodified lines | ||
| 18 | 18 | #include <linux/sched/task.h> |
| 19 | 19 | #include <linux/sched/task_stack.h> |
| 20 | 20 | #include <linux/sched/cputime.h> |
| 21 | +#include <linux/sched/init.h> | |
| 21 | 22 | |
| 22 | 23 | #include <linux/u64_stats_sync.h> |
| 23 | 24 | #include <linux/kernel_stat.h> |