Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp565291yba; Thu, 9 May 2019 02:25:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1C1nDaV+VVIPUXQ6c+NEUnimxmrR9UHkiGiQTCsmDou4GXMKUdn7y/H3HTFToxMHcm/JW X-Received: by 2002:a17:902:e612:: with SMTP id cm18mr3571190plb.255.1557393956936; Thu, 09 May 2019 02:25:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557393956; cv=none; d=google.com; s=arc-20160816; b=B6RAdV8Rh/JeGtrJxNzmPa4diWDy3V07bkzlLAHLGG+Qu8eoy4KYHsa0CSSrs4h8vr lrJSoMk/BOuDzViXbeU71yXAke23iL9z44mwYfh8EvuSXwCrnWtpmTfMr3e2QH1j/5bh NZ4RD+AQE7ZDfNHVWxnIH3fRfm9W3GCNC1P600tX1Q0EYCEgjn+/Rsw/JqzpUCOGVuOe ChsgODLVm7hxUSYLE/aVFZfZu1WNBcXeUro0DvHnGL4W1gZvIHlTzFiwT1ypt2lgOtA3 QQe9PtLTZyBCZjPKPTZCCa7SP4ZmBgLVffPVtqBo/T/VBVpVSmwR6PCoxz4mVRfWxU+c CmpA== 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=UtE7gP9ZZ8xJc7pmCzSyXdEODTTkzCWryxbawl0p+tw=; b=WchQUccGkqzAJD8KYO3tFciVfH6avwRMJvRrwQ4F1QI8Dx0uHzMRShCyZf0NSUsVeB p8NMIIM6CJnF+/WIEVx3X7/seEqzHc79nEut3FdiZPpcLfOkTQAW0HBBs+qEH4fBqRLH MxumsTvQE6ICiweieknWe7ftAmaYBa5GV833EhVG9x5wjAvFSnHHqKF3JUZVIja6OjAT yKmivPlDhNls5Q7rBJ/gGqEdRn08dR6WVC74OeEBKznlUb/UDiZG8tB0JmUknXO7DGVo TPts1AKOoS+oj3KAkuxIk+nGNKv5AzcW28pI+U6NT6eXR+X/vZHRgLjAHy/i19GiVCcZ ONow== 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 k33si1945195pld.415.2019.05.09.02.25.40; Thu, 09 May 2019 02:25:56 -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 S1726545AbfEIJYs (ORCPT + 99 others); Thu, 9 May 2019 05:24:48 -0400 Received: from foss.arm.com ([217.140.101.70]:35686 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbfEIJYs (ORCPT ); Thu, 9 May 2019 05:24:48 -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 779D1374; Thu, 9 May 2019 02:24:47 -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 835003F575; Thu, 9 May 2019 02:24:44 -0700 (PDT) Date: Thu, 9 May 2019 10:24:42 +0100 From: Patrick Bellasi To: Peter Zijlstra 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: <20190509092442.3avaelrsxd2l5dfl@e110439-lin> References: <20190402104153.25404-1-patrick.bellasi@arm.com> <20190402104153.25404-7-patrick.bellasi@arm.com> <20190507111347.4ivnjwbymsf7i3e6@e110439-lin> <20190508194439.GF32547@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190508194439.GF32547@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:44, Peter Zijlstra wrote: > 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! Yep, noted. Thanks. -- #include Patrick Bellasi