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

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


On Fri, Apr 21, 2017 at 10:47:29AM +0100, Juri Lelli wrote:

> Oh, I think it works "by coincidence", as ENQUEUE_RESTORE == DEQUEUE_SAVE
> == 0x02 ? :)

That's very much on purpose, also see:

#define DEQUEUE_SAVE 0x02 /* matches ENQUEUE_RESTORE */