Browse Source

Change ifdef order since batch is always defined if idle is.

Con Kolivas 14 years ago
parent
commit
07f6de8b34
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.c

+ 1 - 1
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, &param) == -1))
 #endif
-#ifdef SCHED_BATCH
 		sched_setscheduler(0, SCHED_BATCH, &param);
 #endif
 }