OpenCloudOS-Kernel/arch/loongarch/kernel
Huacai Chen 255b4658c8 LoongArch: Fix the !CONFIG_SMP build
1, We assume arch/loongarch/include/asm/smp.h be included in include/
   linux/smp.h is valid and the reverse inclusion isn't. So remove the
   <linux/smp.h> in arch/loongarch/include/asm/smp.h.
2, arch/loongarch/include/asm/smp.h is only needed when CONFIG_SMP,
   and setup.c include it only because it need plat_smp_setup(). So,
   reorganize setup.c & smp.h, and then remove <asm/smp.h> in setup.c.
3, Fix cacheinfo.c and percpu.h build error by adding the missing header
   files when !CONFIG_SMP.
4, Fix acpi.c build error by adding CONFIG_SMP guards.
5, Move irq_stat definition from smp.c to irq.c and fix its declaration.
6, Select CONFIG_SMP for CONFIG_NUMA, similar as other architectures do.

Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
2022-06-08 11:00:40 +08:00
..
.gitignore
Makefile LoongArch: Add Non-Uniform Memory Access (NUMA) support 2022-06-03 20:09:29 +08:00
access-helper.h LoongArch: Add exception/interrupt handling 2022-06-03 20:09:28 +08:00
acpi.c LoongArch: Fix the !CONFIG_SMP build 2022-06-08 11:00:40 +08:00
asm-offsets.c LoongArch: Add multi-processor (SMP) support 2022-06-03 20:09:29 +08:00
cacheinfo.c LoongArch: Fix the !CONFIG_SMP build 2022-06-08 11:00:40 +08:00
cpu-probe.c
dma.c LoongArch: Add Non-Uniform Memory Access (NUMA) support 2022-06-03 20:09:29 +08:00
efi.c
elf.c LoongArch: Add ELF and module support 2022-06-03 20:09:28 +08:00
entry.S LoongArch: Add system call support 2022-06-03 20:09:28 +08:00
env.c
fpu.S LoongArch: Add process management 2022-06-03 20:09:28 +08:00
genex.S LoongArch: Add exception/interrupt handling 2022-06-03 20:09:28 +08:00
head.S LoongArch: Add multi-processor (SMP) support 2022-06-03 20:09:29 +08:00
idle.c LoongArch: Add process management 2022-06-03 20:09:28 +08:00
inst.c LoongArch: Add ELF and module support 2022-06-03 20:09:28 +08:00
io.c LoongArch: Add misc common routines 2022-06-03 20:09:28 +08:00
irq.c LoongArch: Fix the !CONFIG_SMP build 2022-06-08 11:00:40 +08:00
mem.c
module-sections.c LoongArch: Add ELF and module support 2022-06-03 20:09:28 +08:00
module.c LoongArch: Add Non-Uniform Memory Access (NUMA) support 2022-06-03 20:09:29 +08:00
numa.c LoongArch: Add Non-Uniform Memory Access (NUMA) support 2022-06-03 20:09:29 +08:00
proc.c LoongArch: Add multi-processor (SMP) support 2022-06-03 20:09:29 +08:00
process.c LoongArch: Add multi-processor (SMP) support 2022-06-03 20:09:29 +08:00
ptrace.c LoongArch: Add process management 2022-06-03 20:09:28 +08:00
reset.c LoongArch: Add multi-processor (SMP) support 2022-06-03 20:09:29 +08:00
setup.c LoongArch: Fix the !CONFIG_SMP build 2022-06-08 11:00:40 +08:00
signal.c LoongArch: Add signal handling support 2022-06-03 20:09:28 +08:00
smp.c LoongArch: Fix the !CONFIG_SMP build 2022-06-08 11:00:40 +08:00
switch.S LoongArch: Add process management 2022-06-03 20:09:28 +08:00
syscall.c LoongArch: Add system call support 2022-06-03 20:09:28 +08:00
time.c LoongArch: Add VDSO and VSYSCALL support 2022-06-03 20:09:28 +08:00
topology.c LoongArch: Add multi-processor (SMP) support 2022-06-03 20:09:29 +08:00
traps.c LoongArch: Add Non-Uniform Memory Access (NUMA) support 2022-06-03 20:09:29 +08:00
vdso.c LoongArch: Add VDSO and VSYSCALL support 2022-06-03 20:09:28 +08:00
vmlinux.lds.S LoongArch: Add multi-processor (SMP) support 2022-06-03 20:09:29 +08:00