From 07f6de8b348aa13c54e628e299d1b750d9a6c220 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 6 Jul 2011 13:05:57 +1000 Subject: [PATCH] Change ifdef order since batch is always defined if idle is. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 2b45108d..51b230f0 100644 --- a/main.c +++ b/main.c @@ -43,10 +43,10 @@ static inline void drop_policy(void) { struct sched_param param; +#ifdef SCHED_BATCH #ifdef SCHED_IDLE if (unlikely(sched_setscheduler(0, SCHED_IDLE, ¶m) == -1)) #endif -#ifdef SCHED_BATCH sched_setscheduler(0, SCHED_BATCH, ¶m); #endif }