mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 10:36:04 +08:00
内核Kconfig增加AMP选项, api:rt_hw_cpu_id和 RT_USING_SMP宏解耦,增加rt_hw_ipi_send对RT_USING_AMP的依赖
This commit is contained in:
+17
-1
@@ -38,6 +38,22 @@ config RT_USING_SMART
|
||||
help
|
||||
RT-Thread Smart is a microkernel based operating system on RT-Thread.
|
||||
|
||||
config RT_USING_AMP
|
||||
bool "Enable AMP(Asymmetric Multi-Processing)"
|
||||
default n
|
||||
if RT_USING_AMP
|
||||
choice
|
||||
prompt "Select the AMP role"
|
||||
default RT_AMP_SLAVE
|
||||
|
||||
config RT_AMP_MASTER
|
||||
bool "amp role MASTER"
|
||||
|
||||
config RT_AMP_SLAVE
|
||||
bool "amp role SLAVE"
|
||||
endchoice
|
||||
endif
|
||||
|
||||
config RT_USING_SMP
|
||||
bool "Enable SMP(Symmetric multiprocessing)"
|
||||
default n
|
||||
@@ -50,7 +66,7 @@ config RT_USING_SMP
|
||||
config RT_CPUS_NR
|
||||
int "Number of CPUs"
|
||||
default 2
|
||||
depends on RT_USING_SMP
|
||||
depends on RT_USING_SMP || RT_USING_AMP
|
||||
help
|
||||
Number of CPUs in the system
|
||||
|
||||
|
||||
Reference in New Issue
Block a user