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