From 90f9ffc2e8b555171e1976620af7fac225a15a4b Mon Sep 17 00:00:00 2001 From: hujun5 Date: Tue, 7 May 2024 12:08:46 +0800 Subject: [PATCH] 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 --- include/nuttx/sched.h | 2 +- sched/Kconfig | 1 - sched/sched/sched_resumescheduler.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/nuttx/sched.h b/include/nuttx/sched.h index e71baa5fa6..2dcd7bd9c4 100644 --- a/include/nuttx/sched.h +++ b/include/nuttx/sched.h @@ -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); #else # define nxsched_resume_scheduler(tcb) diff --git a/sched/Kconfig b/sched/Kconfig index b36fbd8cdb..1877b944c4 100644 --- a/sched/Kconfig +++ b/sched/Kconfig @@ -351,7 +351,6 @@ config SMP depends on ARCH_HAVE_TESTSET depends on ARCH_INTERRUPTSTACK != 0 select SPINLOCK - select SCHED_RESUMESCHEDULER select IRQCOUNT ---help--- Enables support for Symmetric Multi-Processing (SMP) on a multi-CPU diff --git a/sched/sched/sched_resumescheduler.c b/sched/sched/sched_resumescheduler.c index 77d6bc92d2..025e0e2a43 100644 --- a/sched/sched/sched_resumescheduler.c +++ b/sched/sched/sched_resumescheduler.c @@ -33,7 +33,7 @@ #include "irq/irq.h" #include "sched/sched.h" -#if CONFIG_RR_INTERVAL > 0 || defined(CONFIG_SCHED_RESUMESCHEDULER) +#if defined(CONFIG_SCHED_RESUMESCHEDULER) /**************************************************************************** * Public Functions