forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-16 50a212ec906f7524620675f0c57357691c26c81f
kernel/arch/mips/include/asm/sn/sn0/arch.h
....@@ -12,25 +12,11 @@
1212 #define _ASM_SN_SN0_ARCH_H
1313
1414
15
-#ifndef SN0XXL /* 128 cpu SMP max */
16
-/*
17
- * This is the maximum number of nodes that can be part of a kernel.
18
- * Effectively, it's the maximum number of compact node ids (cnodeid_t).
19
- */
20
-#define MAX_COMPACT_NODES 64
21
-
2215 /*
2316 * MAXCPUS refers to the maximum number of CPUs in a single kernel.
2417 * This is not necessarily the same as MAXNODES * CPUS_PER_NODE
2518 */
26
-#define MAXCPUS 128
27
-
28
-#else /* SN0XXL system */
29
-
30
-#define MAX_COMPACT_NODES 128
31
-#define MAXCPUS 256
32
-
33
-#endif /* SN0XXL */
19
+#define MAXCPUS (MAX_NUMNODES * CPUS_PER_NODE)
3420
3521 /*
3622 * This is the maximum number of NASIDS that can be present in a system.
....@@ -66,7 +52,5 @@
6652 #define SLOT_MIN_MEM_SIZE (32*1024*1024)
6753
6854 #define CPUS_PER_NODE 2 /* CPUs on a single hub */
69
-#define CPUS_PER_NODE_SHFT 1 /* Bits to shift in the node number */
70
-#define CPUS_PER_SUBNODE 2 /* CPUs on a single hub PI */
7155
7256 #endif /* _ASM_SN_SN0_ARCH_H */