diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2024-06-03 09:45:53 +0200 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2024-06-03 09:45:53 +0200 |
commit | 3de9c42d02a79a5e09bbee7a4421ddc00cfd5c6d (patch) | |
tree | dbf4975146ba93d65b3cfeb885430a94a1721c19 /arch/loongarch/include/asm | |
parent | LoongArch: Fix built-in DTB detection (diff) | |
download | linux-3de9c42d02a79a5e09bbee7a4421ddc00cfd5c6d.tar.xz linux-3de9c42d02a79a5e09bbee7a4421ddc00cfd5c6d.zip |
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')
-rw-r--r-- | arch/loongarch/include/asm/numa.h | 1 |
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) { |