Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5401023yba; Wed, 8 May 2019 12:42:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwg17oD13wgyq6ZS2aIhX6TAxqyqnBNxGyMOuw3bQEwfK10Caqeehlxk/FW7iKn1tmDblZy X-Received: by 2002:a17:902:4a0c:: with SMTP id w12mr50822791pld.52.1557344579435; Wed, 08 May 2019 12:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557344579; cv=none; d=google.com; s=arc-20160816; b=bfVjS41uv8qpCyy9A9KERHUJt75jISQSIaVImygNpsqDvTSoc+zKfvRKarB4fjz1PR HqAIbpIRx/zRGUt3kfyI85RK8N53ruU1pcTYxVM+PJVInd3SVAkyyJADtKXcweMdptK2 FbopK2H0Ip0roMGm3zUrx+zRbRPqLFLJn7wnNLUP52PLFFZksBzJvCONFsUbAED6yVst 7iU3OTgCp8Blpg05OuOmJnldkcCwxzSX1zYOaVQyWYtE4D0RJPQgrFRJY+lQJIFmuFAK jon9PFjhvzlvfsDwaVxRmEJYKYX5wTsB56CMspYodBU5QhKTW1wCnq9t/y6/zNxXsSjY nvKg== 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=WE7PWt8XQUOE1iIf+nqgocNKuCDwRmDW4pa8qW0IuZU=; b=00fY6CRvTVvBQNNrZbYfJ46hbc/0ElO+nzzB/ohTp7wzxR9RSTE47V899HZoc5I3TI n0E+hL6i8M7uAMcfiKACdEXdTt8y9DPZNmQIFKV8n/DxlJUfYgTIP8cKwmhd4oOv7NMx Psvqcj5BHDgmojMsV3/Llj6D9c6Q+GcG55OJilVGPe4N/SRJ5TwIWy52tdEMFU9xP1KK dO+gLgVtL3eLyjfbw5INrCFv+nzo7im2UCYtvgotVQLwXK7S+qyCdlYaIQ75ULA2wJ/M WuhC3CnWL2snM22X0hQ4WCRP/X3bDfnZ+XO2P4thWrrktdMQqMhETxN3xpCz9RD+pfnJ YYkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=wtLgATrI; 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 t30si23247544pgk.496.2019.05.08.12.42.43; Wed, 08 May 2019 12:42:59 -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=wtLgATrI; 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 S1728373AbfEHTlS (ORCPT + 99 others); Wed, 8 May 2019 15:41:18 -0400 Received: from merlin.infradead.org ([205.233.59.134]:52676 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727026AbfEHTlS (ORCPT ); Wed, 8 May 2019 15:41:18 -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=WE7PWt8XQUOE1iIf+nqgocNKuCDwRmDW4pa8qW0IuZU=; b=wtLgATrII14gdyI/9X1YYN12B HTDrwNfjyilOXj7+MQJTZ91z7KGepszlLSmXSkvekXnAFWWjgBMdsfz6o62eUvIaU3YoUX86ybJAR 39ZvGe66mPGJkxTmMmoXJlHbMiUKbvskQKYex7ba6mC59cpjSShQGuL+nSr/onCR/phYbk1lvUSTB ngsxzH3AGZSLy3leEdAkTb8rwoAs5p/eQe4NSPwyCArdEhxlLOPG2feLAiuE8ji25vxdUHM2WfCkw yDB7lEUWORWlsvjWWXYO7H19MhT/VJv9sG1NB28Os1FrtxoMsZ4gt6kN/i3IR3o3rcl2ylJEprwUR pGmZZH9+g==; 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 1hOSRA-0003w1-Ul; Wed, 08 May 2019 19:41:09 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 358AF98030A; Wed, 8 May 2019 21:41:07 +0200 (CEST) Date: Wed, 8 May 2019 21:41:07 +0200 From: Peter Zijlstra To: Patrick Bellasi 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: <20190508194107.GE32547@worktop.programming.kicks-ass.net> References: <20190402104153.25404-1-patrick.bellasi@arm.com> <20190402104153.25404-7-patrick.bellasi@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190402104153.25404-7-patrick.bellasi@arm.com> 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, 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 ? > +}