From 12cdd2a8fedd2901ad3e99622e547e517a9c8f2a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 24 Jul 2015 12:27:15 -0600 Subject: [PATCH] Fix some bad conditional compilation --- sched/sched/sched_processtimer.c | 2 +- sched/task/task_recover.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sched/sched/sched_processtimer.c b/sched/sched/sched_processtimer.c index 344316166e8..05f9bfdf8bd 100644 --- a/sched/sched/sched_processtimer.c +++ b/sched/sched/sched_processtimer.c @@ -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) diff --git a/sched/task/task_recover.c b/sched/task/task_recover.c index 82ec4e9d12e..b474eba995b 100644 --- a/sched/task/task_recover.c +++ b/sched/task/task_recover.c @@ -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 */