Since the kernel commit 9559d5806319 ("LoongArch: Increase max
supported CPUs up to 2048")the NR_CPUS on Linux kernel ranges
from 2-2048. So let's match NR_CPUS with the max NR_CPUS count
on the Linux kernel.
Signed-off-by: Chenghao Duan <duanchenghao(a)kylinos.cn>
---
defs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/defs.h b/defs.h
index 156ac02..c407ac4 100644
--- a/defs.h
+++ b/defs.h
@@ -169,7 +169,7 @@
#define NR_CPUS (256)
#endif
#ifdef LOONGARCH64
-#define NR_CPUS (256)
+#define NR_CPUS (2048)
#endif
#define NR_DEVICE_DUMPS (64)
--
2.25.1
Show replies by date