Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3142861imu; Wed, 7 Nov 2018 05:51:40 -0800 (PST) X-Google-Smtp-Source: AJdET5fu1pA6TGdV/74ks4IYsDiq4Yq2o7oX745ScXO5dlUu4i9A/fgiPACq3+/Z4VZOb1StmmIc X-Received: by 2002:a63:bf0b:: with SMTP id v11mr263035pgf.302.1541598700317; Wed, 07 Nov 2018 05:51:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541598700; cv=none; d=google.com; s=arc-20160816; b=vnOCE5EL8yXADKb2guGiH5nTJmLRDhpyVu672jpLVd2q7LCs88Ym5EDVfqbqdgUJBv i4R3CNjTpTvH2CJlfeADBxRq/xrd21HENx1rmWuzU8Ew0/PLkg8jNs55icHHNGNuzrKx dU0kVfoAEMMvY5uyTAOU7o5VJJxDgkMqDgyUXNmXNiUA8ICcILiFb+JyQXj7i2saZefU R1GjqsBi7aSwEX8dDOBeMiHnSik1fqzq+u4GgrMMxNcoT05imJgjEpgLBXBlfl1Zuwxj uQXu/NbFCAz4MOiCn5aSH3iM0M575/ogJzwqINy9Gb7l7vpkznypAV6UVq/h88/+vVQv 41TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Xm8rRqXB/dBb8KA0tLVL1PzMuaZ0c31XdcA4++Vrcew=; b=n2gFwdgzxsOT4PgqbvnyyqeusxjUmU6nFpldgVShh9LohoPNJsE7UO6d73a4nzEfzo XJXfLbdg033W1bK5OECFjaZAmQVXF26oxd7+gVrge7DzcuwE33P+fTzpE13MvpkraMPw JC1VjP7rAfA+0wofnWm0nWL19e/PWXBDHCsYMyugvYAl/ErfCaO7DpxiIVPRhANtKSmL GcyQ0KCsk44OLsgfmUPsiuW1yd7+L/jipXJpKaLON0ZMq3eKlvKOORek2tDbo4ClQmR6 cObq3F+6CP/Gc35XRw2vMqInv3rVhTt+NusVy0o5LySw2db16mLt/CNrY3s96xckj70O vlGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3-v6si758887pln.204.2018.11.07.05.51.25; Wed, 07 Nov 2018 05:51:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730930AbeKGXVM (ORCPT + 99 others); Wed, 7 Nov 2018 18:21:12 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:51188 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727610AbeKGXVM (ORCPT ); Wed, 7 Nov 2018 18:21:12 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A8F81A78; Wed, 7 Nov 2018 05:50:44 -0800 (PST) Received: from e110439-lin (e110439-lin.cambridge.arm.com [10.1.194.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id ADAC13F5CF; Wed, 7 Nov 2018 05:50:41 -0800 (PST) Date: Wed, 7 Nov 2018 13:50:39 +0000 From: Patrick Bellasi To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , Tejun Heo , "Rafael J . Wysocki" , Vincent Guittot , Viresh Kumar , Paul Turner , Quentin Perret , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes , Steve Muckle , Suren Baghdasaryan , linux-api@vger.kernel.org Subject: Re: [PATCH v5 02/15] sched/core: make sched_setattr able to tune the current policy Message-ID: <20181107135039.GD14309@e110439-lin> References: <20181029183311.29175-1-patrick.bellasi@arm.com> <20181029183311.29175-3-patrick.bellasi@arm.com> <20181107121126.GN9781@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181107121126.GN9781@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07-Nov 13:11, Peter Zijlstra wrote: > On Mon, Oct 29, 2018 at 06:32:56PM +0000, Patrick Bellasi wrote: > > > @@ -50,11 +52,13 @@ > > #define SCHED_FLAG_RESET_ON_FORK 0x01 > > #define SCHED_FLAG_RECLAIM 0x02 > > #define SCHED_FLAG_DL_OVERRUN 0x04 > > -#define SCHED_FLAG_UTIL_CLAMP 0x08 > > +#define SCHED_FLAG_TUNE_POLICY 0x08 > > +#define SCHED_FLAG_UTIL_CLAMP 0x10 > > That seems to suggest you want to do this patch first, but you didn't.. I've kept it here just to better highlight this change, suggested by Juri, since we was not entirely sure you are fine with it... If you think it's ok adding a SCHED_FLAG_TUNE_POLICY behavior to the sched_setattr syscall, I can certainly squash into the previous patch, which gives more context on why we need it. Otherwise, if we want to keep these bits better isolated for possible future bisects, I can also move it at the beginning of the series. What do you like best ? Since we are at that, are we supposed to document some{where,how} these API changes ? -- #include Patrick Bellasi