Commit 07f6de8b348aa13c54e628e299d1b750d9a6c220

Con Kolivas 2011-07-06T13:05:57

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/main.c b/main.c
index 2b45108..51b230f 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, &param) == -1))
 #endif
-#ifdef SCHED_BATCH
 		sched_setscheduler(0, SCHED_BATCH, &param);
 #endif
 }