lib/thread: translate SCHED_BATCH, SCHED_IDLE in attachment

The in-band SCHED_BATCH and SCHED_IDLE policies should translate as
[SCHED_WEAK, 0] when attaching a thread to the core.
This commit is contained in:
Philippe Gerum 2020-02-08 12:30:44 +01:00
parent 572a606b7a
commit f0ca4abc34
1 changed files with 2 additions and 0 deletions

View File

@ -101,6 +101,8 @@ int evl_attach_self(const char *fmt, ...)
switch (policy) {
case SCHED_OTHER:
case SCHED_BATCH:
case SCHED_IDLE:
priority = 0;
break;
default: