summaryrefslogtreecommitdiffstats
path: root/arch/loongarch/kernel/smp.c
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2022-06-05 10:19:53 +0200
committerHuacai Chen <chenhuacai@loongson.cn>2022-06-08 05:00:40 +0200
commit255b4658c809e194bc10236ac24a722ec14a83d6 (patch)
treea325d0ed85a26eaf794369a5c52dc5a53d6a0041 /arch/loongarch/kernel/smp.c
parentLinux 5.19-rc1 (diff)
downloadlinux-255b4658c809e194bc10236ac24a722ec14a83d6.tar.xz
linux-255b4658c809e194bc10236ac24a722ec14a83d6.zip
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>
Diffstat (limited to 'arch/loongarch/kernel/smp.c')
-rw-r--r--arch/loongarch/kernel/smp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/loongarch/kernel/smp.c b/arch/loongarch/kernel/smp.c
index b8c53b755a25..73cec62504fb 100644
--- a/arch/loongarch/kernel/smp.c
+++ b/arch/loongarch/kernel/smp.c
@@ -66,8 +66,6 @@ static cpumask_t cpu_core_setup_map;
struct secondary_data cpuboot_data;
static DEFINE_PER_CPU(int, cpu_state);
-DEFINE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
-EXPORT_PER_CPU_SYMBOL(irq_stat);
enum ipi_msg_type {
IPI_RESCHEDULE,