On 12/11/25 11:57 AM, devel-request(a)lists.crash-utility.osci.io wrote:
Date: Thu, 11 Dec 2025 09:41:18 +0800
From: Chenghao Duan<duanchenghao(a)kylinos.cn>
Subject: [Crash-utility] [PATCH] Loongarch: update the NR_CPUS to 2048
To:devel@lists.crash-utility.osci.io
Cc: Chenghao Duan<duanchenghao(a)kylinos.cn>
Message-ID:<20251211014118.124373-1-duanchenghao@kylinos.cn>
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.
Thank you for the patch. Ack.
Lianbo
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