summaryrefslogtreecommitdiff
path: root/arch/loongarch/include/asm/numa.h
diff options
context:
space:
mode:
authorJiaxun Yang <jiaxun.yang@flygoat.com>2024-06-03 10:45:53 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2024-06-03 10:45:53 +0300
commit3de9c42d02a79a5e09bbee7a4421ddc00cfd5c6d (patch)
treedbf4975146ba93d65b3cfeb885430a94a1721c19 /arch/loongarch/include/asm/numa.h
parentb56f67a6c748bb009f313f91651c8020d2338d63 (diff)
downloadlinux-3de9c42d02a79a5e09bbee7a4421ddc00cfd5c6d.tar.xz
LoongArch: Add all CPUs enabled by fdt to NUMA node 0
NUMA enabled kernel on FDT based machine fails to boot because CPUs are all in NUMA_NO_NODE and mm subsystem won't accept that. Fix by adding them to default NUMA node at FDT parsing phase and move numa_add_cpu(0) to a later point. Cc: stable@vger.kernel.org Fixes: 88d4d957edc7 ("LoongArch: Add FDT booting support from efi system table") Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/include/asm/numa.h')
-rw-r--r--arch/loongarch/include/asm/numa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/loongarch/include/asm/numa.h b/arch/loongarch/include/asm/numa.h
index 27f319b49862..b5f9de9f102e 100644
--- a/arch/loongarch/include/asm/numa.h
+++ b/arch/loongarch/include/asm/numa.h
@@ -56,6 +56,7 @@ extern int early_cpu_to_node(int cpu);
static inline void early_numa_add_cpu(int cpuid, s16 node) { }
static inline void numa_add_cpu(unsigned int cpu) { }
static inline void numa_remove_cpu(unsigned int cpu) { }
+static inline void set_cpuid_to_node(int cpuid, s16 node) { }
static inline int early_cpu_to_node(int cpu)
{