On Fri, Apr 21, 2017 at 11:59:07AM +0200, luca abeni wrote: > Not sure if this is a conincidence... By looking at the comments in > sched/sched.h I got the impression the two values match by design (and > __sched_setscheduler() is using this property to simplify the code :)
Exactly. Makes things simpler if they line up properly, because then you can use the same flags for dequeue and enqueue.