kernel, esp32: Add SMP kconfig flag and MP_NUM_CPUS variable
Simply define the Kconfig variables in this patch so they can be used in later patches. Define MP_NUM_CPUS correctly on esp32. No code changes. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
86ff14824d
commit
d3376f2781
2 changed files with 19 additions and 0 deletions
|
@ -15,4 +15,7 @@ config IRQ_OFFLOAD_INTNUM
|
||||||
config XTENSA_ASM2
|
config XTENSA_ASM2
|
||||||
def_bool y
|
def_bool y
|
||||||
|
|
||||||
|
config MP_NUM_CPUS
|
||||||
|
default 2
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -561,6 +561,22 @@ config USE_SWITCH
|
||||||
architecture provides both, _arch_switch incurs more somewhat
|
architecture provides both, _arch_switch incurs more somewhat
|
||||||
overhead and may be slower.
|
overhead and may be slower.
|
||||||
|
|
||||||
|
config SMP
|
||||||
|
bool
|
||||||
|
prompt "Enable symmetric multithreading support"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
When true, Zephyr will be build with SMP support, allowing
|
||||||
|
more than one CPU to schedule Zephyr tasks at a time.
|
||||||
|
|
||||||
|
config MP_NUM_CPUS
|
||||||
|
int
|
||||||
|
prompt "Number of CPUs/cores"
|
||||||
|
default 1
|
||||||
|
help
|
||||||
|
Number of multiprocessing-capable cores available to the
|
||||||
|
multicpu API and SMP features.
|
||||||
|
|
||||||
source "kernel/Kconfig.event_logger"
|
source "kernel/Kconfig.event_logger"
|
||||||
|
|
||||||
source "kernel/Kconfig.power_mgmt"
|
source "kernel/Kconfig.power_mgmt"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue