Fix some bad conditional compilation

This commit is contained in:
Gregory Nutt 2015-07-24 12:27:15 -06:00
parent 0d71260bf2
commit 12cdd2a8fe
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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 */