mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
sched: Define CONFIG_SMP_NCPUS to 1 in no SMP case
to simplify the SMP related code logic Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -202,11 +202,7 @@ struct mm_heap_s
|
||||
* immdiately.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
FAR struct mm_delaynode_s *mm_delaylist[CONFIG_SMP_NCPUS];
|
||||
#else
|
||||
FAR struct mm_delaynode_s *mm_delaylist[1];
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MEMINFO)
|
||||
struct procfs_meminfo_entry_s mm_procfs;
|
||||
|
||||
Reference in New Issue
Block a user