sched/sched: CONFIG_SCHED_RESUMESCHEDULER macro define error

we removed "select SCHED_RESUMESCHEDULER",
As SCHED_RESUMESCHEDULER is not a necessary feature in SMP,
turning it on by default may affect performance.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5 2024-05-07 12:08:46 +08:00 committed by Xiang Xiao
parent e187dbd663
commit 90f9ffc2e8
3 changed files with 2 additions and 3 deletions

View File

@ -1210,7 +1210,7 @@ int group_exitinfo(pid_t pid, FAR struct binary_s *bininfo);
* *
****************************************************************************/ ****************************************************************************/
#if CONFIG_RR_INTERVAL > 0 || defined(CONFIG_SCHED_RESUMESCHEDULER) #if defined(CONFIG_SCHED_RESUMESCHEDULER)
void nxsched_resume_scheduler(FAR struct tcb_s *tcb); void nxsched_resume_scheduler(FAR struct tcb_s *tcb);
#else #else
# define nxsched_resume_scheduler(tcb) # define nxsched_resume_scheduler(tcb)

View File

@ -351,7 +351,6 @@ config SMP
depends on ARCH_HAVE_TESTSET depends on ARCH_HAVE_TESTSET
depends on ARCH_INTERRUPTSTACK != 0 depends on ARCH_INTERRUPTSTACK != 0
select SPINLOCK select SPINLOCK
select SCHED_RESUMESCHEDULER
select IRQCOUNT select IRQCOUNT
---help--- ---help---
Enables support for Symmetric Multi-Processing (SMP) on a multi-CPU Enables support for Symmetric Multi-Processing (SMP) on a multi-CPU

View File

@ -33,7 +33,7 @@
#include "irq/irq.h" #include "irq/irq.h"
#include "sched/sched.h" #include "sched/sched.h"
#if CONFIG_RR_INTERVAL > 0 || defined(CONFIG_SCHED_RESUMESCHEDULER) #if defined(CONFIG_SCHED_RESUMESCHEDULER)
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions