Add the possibility to specify from kernel configs MAXCPU value.
This patch is going to help in cases like mips flavours where you want a more granular support on MAXCPU. No MFC is previewed for this patch. Tested by: pluknet Approved by: re (kib)
This commit is contained in:
parent
fcc3d62fa5
commit
68b739cd6f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=224207
@ -64,7 +64,9 @@
|
||||
#endif
|
||||
|
||||
#if defined(SMP) || defined(KLD_MODULE)
|
||||
#ifndef MAXCPU
|
||||
#define MAXCPU 32
|
||||
#endif
|
||||
#else
|
||||
#define MAXCPU 1
|
||||
#endif
|
||||
|
@ -61,7 +61,9 @@
|
||||
#define MID_MACHINE MID_ARM6
|
||||
|
||||
#if defined(SMP) || defined(KLD_MODULE)
|
||||
#ifndef MAXCPU
|
||||
#define MAXCPU 2
|
||||
#endif
|
||||
#else
|
||||
#define MAXCPU 1
|
||||
#endif /* SMP || KLD_MODULE */
|
||||
|
@ -213,6 +213,10 @@ options SCHED_STATS
|
||||
# Mandatory:
|
||||
options SMP # Symmetric MultiProcessor Kernel
|
||||
|
||||
# MAXCPU defines the maximum number of CPUs that can boot in the system.
|
||||
# A default value should be already present, for every architecture.
|
||||
options MAXCPU=32
|
||||
|
||||
# ADAPTIVE_MUTEXES changes the behavior of blocking mutexes to spin
|
||||
# if the thread that currently owns the mutex is executing on another
|
||||
# CPU. This behaviour is enabled by default, so this option can be used
|
||||
|
@ -570,6 +570,7 @@ DFLTPHYS opt_global.h
|
||||
DIAGNOSTIC opt_global.h
|
||||
INVARIANT_SUPPORT opt_global.h
|
||||
INVARIANTS opt_global.h
|
||||
MAXCPU opt_global.h
|
||||
MAXPHYS opt_global.h
|
||||
MCLSHIFT opt_global.h
|
||||
MUTEX_DEBUG opt_global.h
|
||||
|
@ -68,7 +68,9 @@
|
||||
#define MID_MACHINE MID_I386
|
||||
|
||||
#if defined(SMP) || defined(KLD_MODULE)
|
||||
#ifndef MAXCPU
|
||||
#define MAXCPU 32
|
||||
#endif
|
||||
#else
|
||||
#define MAXCPU 1
|
||||
#endif /* SMP || KLD_MODULE */
|
||||
|
@ -62,7 +62,9 @@
|
||||
#endif
|
||||
|
||||
#if defined(SMP) || defined(KLD_MODULE)
|
||||
#ifndef MAXCPU
|
||||
#define MAXCPU 32
|
||||
#endif
|
||||
#else
|
||||
#define MAXCPU 1
|
||||
#endif
|
||||
|
@ -87,7 +87,9 @@
|
||||
|
||||
#ifdef SMP
|
||||
#define MAXSMPCPU 32
|
||||
#ifndef MAXCPU
|
||||
#define MAXCPU MAXSMPCPU
|
||||
#endif
|
||||
#else
|
||||
#define MAXSMPCPU 1
|
||||
#define MAXCPU 1
|
||||
|
@ -68,7 +68,9 @@
|
||||
#endif
|
||||
|
||||
#if defined(SMP) || defined(KLD_MODULE)
|
||||
#ifndef MAXCPU
|
||||
#define MAXCPU 8
|
||||
#endif
|
||||
#else
|
||||
#define MAXCPU 1
|
||||
#endif /* SMP || KLD_MODULE */
|
||||
|
@ -50,7 +50,9 @@
|
||||
#define MID_MACHINE MID_SPARC64
|
||||
|
||||
#if defined(SMP) || defined(KLD_MODULE)
|
||||
#ifndef MAXCPU
|
||||
#define MAXCPU 16
|
||||
#endif
|
||||
#else
|
||||
#define MAXCPU 1
|
||||
#endif /* SMP || KLD_MODULE */
|
||||
|
Loading…
Reference in New Issue
Block a user