Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5403798yba; Wed, 8 May 2019 12:46:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzH9Zw/Dl7w/jfnMASo5ucuSmh6NpTW0rer2cK7qQIuPVbCcujrzNifQkV5SxvtEt2Jl5An X-Received: by 2002:a63:a849:: with SMTP id i9mr49572024pgp.205.1557344767312; Wed, 08 May 2019 12:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557344767; cv=none; d=google.com; s=arc-20160816; b=hN5QgRAMW7j9ZC+SPh+BVMabuszUOd2M2hY9IoUrVNFicj6quLZ3I7S38/8QcsYCsk Als3N2REO6PWAOMjAU8YtdWgczuVeqqvG6xfON13lw3Jnrn26GHDI5vG3Mla1lY8f8kB ojPMApQGSJd3vn812zU+zYUploRiSpv4hsJeJ4hPhd4J3Hv0Y5lH2Rs9XML933G+0jjl m5mlLMQYqaGF6r/l2pvp3nGwCy6s53/HNjls0+gzxzjBCuTnFRdC0c2fMDC2aUKAGhrI WlTeQdzr2YnbyPolDaZs7C9D95NZXoKOuFyaDRCc5I5D7XLXRAKZUnmLRnX3TnMFNKWw HeeQ== 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:dkim-signature; bh=uKC1JyjjYtwBLaIzRTzlSvw/gzaX0p25IvXJ52mSqSs=; b=L4uz8nN7gJ0IgPH5ACV5l+nlNSN7/ksxB7psNqiGa4kzYyNFv0oEddVWccX2dOi+7m 5EQLj3BhScEGE6cx8+qD1lsxWXG4yI1AESDRQ7kt19KRTxCvBxuvAisjYcmUKP691LmP /4LPmz2FMGZWq2n+buSQ0oKXbtKaDOQciHy9aYASH1m9trp00Sb/tMVlrvpqndkqaS5s 7x9/Y57n+sLXrY44aadeu7iyanCqHkv4ZB8t0zDzebUPO3LPB2pekUZXrxFmyzjrKbtS v5/eOaJhDHZwg9tUWLPfLA6f+6eK3ve1JpvZJaMPZvzlQhkr01p8vDWacrZ3BC1VEwkY sR8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=AwjkqeDE; 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 31si25995745plz.73.2019.05.08.12.45.49; Wed, 08 May 2019 12:46:07 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=AwjkqeDE; 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 S1728054AbfEHTot (ORCPT + 99 others); Wed, 8 May 2019 15:44:49 -0400 Received: from merlin.infradead.org ([205.233.59.134]:52722 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727097AbfEHTos (ORCPT ); Wed, 8 May 2019 15:44:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=uKC1JyjjYtwBLaIzRTzlSvw/gzaX0p25IvXJ52mSqSs=; b=AwjkqeDEmIXQOdcKAOI6y0NAg ycueoqeqjWgFk2U10qsfzTOI+HmvK10yNcdV7CW2VqvXGpz38vTnWqccy5aCNcb6avXKkZBNXeFwf BqKLO1CBEKC4KYkmhW970DUS15DtlrRe2qSOmV2bPZbEFJjuO5kxtpxalwQleqoVn8L2zaIs7tUd2 i/ztBkermxB8Q0B0yRYogV7I76ZQo/IbKI7j/yA6yw49gN8OGzNYc7NtqeLR7669CAj9Pprhb+5rr QqYdMuCUakroUHM7yUh7YTAaBjiV35HsCRqf7QZKtzGEnVo+Q2b2O9SaUFc/UQuRdvVnKQr/zRZD/ Fa4xuRCKQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hOSUb-0003yo-HJ; Wed, 08 May 2019 19:44:41 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 8FB0F98030A; Wed, 8 May 2019 21:44:39 +0200 (CEST) Date: Wed, 8 May 2019 21:44:39 +0200 From: Peter Zijlstra To: Patrick Bellasi Cc: Suren Baghdasaryan , LKML , 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 Subject: Re: [PATCH v8 06/16] sched/core: uclamp: Extend sched_setattr() to support utilization clamping Message-ID: <20190508194439.GF32547@worktop.programming.kicks-ass.net> References: <20190402104153.25404-1-patrick.bellasi@arm.com> <20190402104153.25404-7-patrick.bellasi@arm.com> <20190507111347.4ivnjwbymsf7i3e6@e110439-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190507111347.4ivnjwbymsf7i3e6@e110439-lin> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 07, 2019 at 12:13:47PM +0100, Patrick Bellasi wrote: > On 17-Apr 15:26, Suren Baghdasaryan wrote: > > On Tue, Apr 2, 2019 at 3:42 AM 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; > > > > ENOSYS might be more appropriate? > > Yep, agree, thanks! No, -ENOSYS (see the comment) is special in that it indicates the whole system call is unavailable; that is most certainly not the case!