Skip to content

Commit

Permalink
sched/sched: CONFIG_SCHED_RESUMESCHEDULER macro define error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hujun260 committed May 7, 2024
1 parent 72de3fe commit 0727706
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/nuttx/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion sched/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sched/sched/sched_resumescheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0727706

Please sign in to comment.