Browse Source

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

nfactor-troky
Con Kolivas 14 years ago
parent
commit
07f6de8b34
  1. 2
      main.c

2
main.c

@ -43,10 +43,10 @@ static inline void drop_policy(void) @@ -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
}

Loading…
Cancel
Save