Skip to contentSkip to conversation

ppc64: update the NR_CPUS to 8192

PATCH In review Sourabh Jain 1 participant 2 messages May 5, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc64: update the NR_CPUS to 8192

The NR_CPUS on Linux kernel ranges from 1-8192. So let's match NR_CPUS with max NR_CPUS count on Linux kernel.

---
 defs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
defs.h +1 -1
index 1e8360d..a6735d0 100644
@@ -136,7 +136,7 @@
 #define NR_CPUS  (4096)
 #endif
 #ifdef PPC64
-#define NR_CPUS  (2048)
+#define NR_CPUS  (8192)
 #endif
 #ifdef S390
 #define NR_CPUS  (512)
Signature · 1 line
2.35.1
#1 lore raw
Quoted 13 lines · Sourabh Jain

The NR_CPUS on Linux kernel ranges from 1-8192. So let's match NR_CPUS with max NR_CPUS count on Linux kernel.

---
  defs.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
defs.h +0 -0
index 1e8360d..a6735d0 100644

defs.h line 142

Quoted 8 lines
defs.h +1 -1
@@ -136,7 +136,7 @@
  #define NR_CPUS  (4096)
  #endif
  #ifdef PPC64
-#define NR_CPUS  (2048)
+#define NR_CPUS  (8192)
  #endif
  #ifdef S390
  #define NR_CPUS  (512)

Please ignore the patch was just meant for crash tool.

Thanks,
Sourabh Jain