Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170607976
D23512.id67805.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D23512.id67805.diff
View Options
Index: sys/amd64/include/param.h
===================================================================
--- sys/amd64/include/param.h
+++ sys/amd64/include/param.h
@@ -65,7 +65,7 @@
#define MACHINE_ARCH32 "i386"
#endif
-#if defined(SMP) || defined(KLD_MODULE)
+#ifdef SMP
#ifndef MAXCPU
#define MAXCPU 256
#endif
Index: sys/arm/include/param.h
===================================================================
--- sys/arm/include/param.h
+++ sys/arm/include/param.h
@@ -75,13 +75,13 @@
#define MACHINE_ARCH "arm" _V_SUFFIX _EB_SUFFIX
#endif
-#if defined(SMP) || defined(KLD_MODULE)
+#ifdef SMP
#ifndef MAXCPU
#define MAXCPU 4
#endif
#else
#define MAXCPU 1
-#endif /* SMP || KLD_MODULE */
+#endif
#ifndef MAXMEMDOM
#define MAXMEMDOM 1
Index: sys/arm64/include/param.h
===================================================================
--- sys/arm64/include/param.h
+++ sys/arm64/include/param.h
@@ -54,13 +54,13 @@
#define MACHINE_ARCH32 "armv7"
#endif
-#if defined(SMP) || defined(KLD_MODULE)
+#ifdef SMP
#ifndef MAXCPU
#define MAXCPU 256
#endif
#else
#define MAXCPU 1
-#endif /* SMP || KLD_MODULE */
+#endif
#ifndef MAXMEMDOM
#define MAXMEMDOM 2
Index: sys/i386/include/param.h
===================================================================
--- sys/i386/include/param.h
+++ sys/i386/include/param.h
@@ -58,13 +58,13 @@
#endif
#define MID_MACHINE MID_I386
-#if defined(SMP) || defined(KLD_MODULE)
+#ifdef SMP
#ifndef MAXCPU
#define MAXCPU 32
#endif
#else
#define MAXCPU 1
-#endif /* SMP || KLD_MODULE */
+#endif
#ifndef MAXMEMDOM
#define MAXMEMDOM 1
Index: sys/powerpc/include/param.h
===================================================================
--- sys/powerpc/include/param.h
+++ sys/powerpc/include/param.h
@@ -73,13 +73,13 @@
#endif
#endif
-#if defined(SMP) || defined(KLD_MODULE)
+#ifdef SMP
#ifndef MAXCPU
#define MAXCPU 256
#endif
#else
#define MAXCPU 1
-#endif /* SMP || KLD_MODULE */
+#endif
#ifndef MAXMEMDOM
#define MAXMEMDOM 8
Index: sys/riscv/include/param.h
===================================================================
--- sys/riscv/include/param.h
+++ sys/riscv/include/param.h
@@ -49,13 +49,13 @@
#define MACHINE_ARCH "riscv64"
#endif
-#if defined(SMP) || defined(KLD_MODULE)
+#ifdef SMP
#ifndef MAXCPU
#define MAXCPU 16
#endif
#else
#define MAXCPU 1
-#endif /* SMP || KLD_MODULE */
+#endif
#ifndef MAXMEMDOM
#define MAXMEMDOM 1
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 6, 3:12 PM (1 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38417740
Default Alt Text
D23512.id67805.diff (2 KB)
Attached To
Mode
D23512: Define MAXCPU consistently between the kernel and KLDs.
Attached
Detach File
Event Timeline
Log In to Comment