mirror of
https://github.com/apache/nuttx.git
synced 2026-09-20 21:06:58 +08:00
Fix some bad conditional compilation
This commit is contained in:
@@ -107,7 +107,7 @@ static inline void sched_process_scheduler(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if CONFIG_RR_INTERVAL > 0
|
||||
#ifdef CONFIG_SCHED_SPORADIC
|
||||
/* Check if the currently executing task uses sporadic scheduling. */
|
||||
|
||||
if ((rtcb->flags & TCB_FLAG_POLICY_MASK) == TCB_FLAG_SCHED_SPORADIC)
|
||||
|
||||
@@ -92,7 +92,7 @@ void task_recover(FAR struct tcb_s *tcb)
|
||||
mq_recover(tcb);
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SCHED_SPORADIC
|
||||
#ifdef CONFIG_SCHED_SPORADIC
|
||||
if ((tcb->flags & TCB_FLAG_POLICY_MASK) == TCB_FLAG_SCHED_SPORADIC)
|
||||
{
|
||||
/* Stop current sporadic scheduling */
|
||||
|
||||
Reference in New Issue
Block a user