Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp564392yba; Thu, 9 May 2019 02:25:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQjVMZ6QwW2tL5fGqQmaVovnzDMy3wC/DiGihQqT7RUOgrkVNaEFCBKTxO47btSkcbYvOK X-Received: by 2002:aa7:82cd:: with SMTP id f13mr3404267pfn.203.1557393902107; Thu, 09 May 2019 02:25:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557393902; cv=none; d=google.com; s=arc-20160816; b=a8lOzCZRoxG2ClSb05ttqjfmA8OkhDR+spPXgs/VTPcJlbi3TKZLyI5nIwQ4sIU/XX lJlgwLJGdbMbgZg6oJDmADpvl0peYCqDBPDOkrfmqXyorslXl/vHtTC/wA5pKxrPCxuJ 5Sho4FD7X62RD3ziIhlqYUm+SpS8/yAXJIVCyUcIxjpic+BCsDzdAfL+5NrsTMMYFC+g 5Vnm1lNTu3DIQXUwMdu9iBH4NxpRKCcv6eNEMOGU2AtTQDlW2ZwnpewbK0tytMxgJn6+ G0DkwDW4TQyGDpXE0qzgottfFJfT6W16Rri8hMY8knOr0qLupF36lSerbqK/Ru8Fcqca HdOA== 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=m/KynamsXK+koRcioPLDT//Wm5rUFpLvCj+j66QiC/8=; b=Ij4SG6PKWkYT4J5KJiqlAQ8vAGtHliqR/NnMTpxW4sJ+M7IS4R69gfUUA65EGXrrME IgdP2xQdUVjNgmi3VdJAjSEXJngPLd1GLqxT3JBf/BYOc1JwRn7dmGJVTU2zpvGvWOIS p6byb5vu/r5vB2uxgg4hvMuBqMzTxrGiPg3HzlYe9JxSUcV1by2ViF0kwBvRyaCHqREl o0ZjqaxkCGtuXkpSyKfChVSEMVqIXbaYjhgX8/xnib7IZ3IWM6wMf1uooIef54vUbODa dnjFmG960cZxsSENKaSOL267G7umIs4SmmJnK1rop3jBw6M2iN/Ca4lCghGSXhw9MXd1 731w== 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 k15si2269130pgh.331.2019.05.09.02.24.44; Thu, 09 May 2019 02:25:02 -0700 (PDT) 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 S1726192AbfEIJXy (ORCPT + 99 others); Thu, 9 May 2019 05:23:54 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:35642 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbfEIJXx (ORCPT ); Thu, 9 May 2019 05:23:53 -0400 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 4768A374; Thu, 9 May 2019 02:23:53 -0700 (PDT) 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 528793F575; Thu, 9 May 2019 02:23:50 -0700 (PDT) Date: Thu, 9 May 2019 10:23:47 +0100 From: Patrick Bellasi To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-api@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 Subject: Re: [PATCH v8 06/16] sched/core: uclamp: Extend sched_setattr() to support utilization clamping Message-ID: <20190509092347.2ny2kb74hrea323v@e110439-lin> References: <20190402104153.25404-1-patrick.bellasi@arm.com> <20190402104153.25404-7-patrick.bellasi@arm.com> <20190508194107.GE32547@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190508194107.GE32547@worktop.programming.kicks-ass.net> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08-May 21:41, Peter Zijlstra wrote: > On Tue, Apr 02, 2019 at 11:41:42AM +0100, Patrick Bellasi wrote: > > @@ -1056,6 +1100,13 @@ static void __init init_uclamp(void) > > #else /* CONFIG_UCLAMP_TASK */ > > static inline void uclamp_rq_inc(struct rq *rq, struct task_struct *p) { } > > static inline void uclamp_rq_dec(struct rq *rq, struct task_struct *p) { } > > +static inline int uclamp_validate(struct task_struct *p, > > + const struct sched_attr *attr) > > +{ > > + return -ENODEV; > > Does that maybe want to be -EOPNOTSUPP ? Suren propose ENOSYS for another similar case, i.e. !CONFIG_UCLAMP_TASK definitions. But EOPNOTSUPP seems more appropriate to me too. -- #include Patrick Bellasi