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