Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1037903AbdDUKSi (ORCPT ); Fri, 21 Apr 2017 06:18:38 -0400 Received: from merlin.infradead.org ([205.233.59.134]:37658 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1037840AbdDUKSg (ORCPT ); Fri, 21 Apr 2017 06:18:36 -0400 Date: Fri, 21 Apr 2017 12:18:25 +0200 From: Peter Zijlstra To: luca abeni Cc: Juri Lelli , linux-kernel@vger.kernel.org, Ingo Molnar , Claudio Scordino , Steven Rostedt , Tommaso Cucinotta , Daniel Bristot de Oliveira , Mathieu Poirier Subject: Re: [PATCH] sched/deadline: fix switching to -deadline Message-ID: <20170421101825.mffgoffssy4krtxg@hirez.programming.kicks-ass.net> References: <1492716656-5362-1-git-send-email-luca.abeni@santannapisa.it> <20170421093926.GQ23862@e106622-lin> <20170421114240.0ef43522@nowhere> <20170421094729.GR23862@e106622-lin> <20170421115907.4044665a@nowhere> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170421115907.4044665a@nowhere> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 398 Lines: 8 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.