Merge pull request #1878 from smoe/patch-2

SCHED_BATCH -> SCHED_IDLE
This commit is contained in:
lfield 2018-10-19 22:25:26 +01:00 committed by GitHub
commit ac7ac3721d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1090,11 +1090,11 @@ int ACTIVE_TASK::start(bool test) {
} }
} }
#endif #endif
#if HAVE_SCHED_SETSCHEDULER && defined(SCHED_BATCH) && defined (__linux__) #if HAVE_SCHED_SETSCHEDULER && defined(SCHED_IDLE) && defined (__linux__)
if (!high_priority) { if (!high_priority) {
struct sched_param sp; struct sched_param sp;
sp.sched_priority = 0; sp.sched_priority = 0;
if (sched_setscheduler(0, SCHED_BATCH, &sp)) { if (sched_setscheduler(0, SCHED_IDLE, &sp)) {
perror("sched_setscheduler"); perror("sched_setscheduler");
} }
} }