Re: [PATCH] sched/deadline: fix switching to -deadline

From: Peter Zijlstra
Date: Fri Apr 21 2017 - 06:18:40 EST


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.