Fix some bad conditional compilation
This commit is contained in:
parent
0d71260bf2
commit
12cdd2a8fe
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user