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:
parent
572a606b7a
commit
f0ca4abc34
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue