Skip to content

Commit

Permalink
sched/sched: CONFIG_SCHED_RESUMESCHEDULER macro define error
Browse files Browse the repository at this point in the history
Signed-off-by: hujun5 <hujun5@xiaomi.com>
  • Loading branch information
hujun260 committed May 6, 2024
1 parent 8ef7238 commit 2844321
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions arch/sparc/src/s698pm/s698pm_cpustart.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ volatile static spinlock_t g_cpu_boot;

void s698pm_cpu_boot(void)
{
struct tcb_s *tcb = this_task();

_info("CPU%d Started\n", this_cpu());

/* Initialize CPU interrupts */
Expand All @@ -84,12 +82,12 @@ void s698pm_cpu_boot(void)
#ifdef CONFIG_SCHED_INSTRUMENTATION
/* Notify that this CPU has started */

sched_note_cpu_started(tcb);
sched_note_cpu_started(this_task());
#endif

/* Reset scheduler parameters */

nxsched_resume_scheduler(tcb);
nxsched_resume_scheduler(this_task());

/* And finally, enable cpu interrupts */

Expand Down
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 2844321

Please sign in to comment.