1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-13 06:01:03 +00:00

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

This commit is contained in:
Con Kolivas 2011-07-06 13:05:57 +10:00
parent cf1e4627e4
commit 07f6de8b34

2
main.c
View File

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