Skip to content
Snippets Groups Projects
Commit 12cdd2a8 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Fix some bad conditional compilation

parent 0d71260b
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment