Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3745301imm; Mon, 6 Aug 2018 09:52:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpde35X2ilcxd68z3esX0+gMEs0uzX/Zxg0g4zVUjESJCemgihuyUaEohDs7dz8iXHEdCrbF X-Received: by 2002:a17:902:4381:: with SMTP id j1-v6mr14717756pld.104.1533574334319; Mon, 06 Aug 2018 09:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533574334; cv=none; d=google.com; s=arc-20160816; b=Zz48aLTmb6548jhHnwaz7geqGGPvlTipQieZiPSZ3ya7SgqzGDGY6JYiMryJkWOlQ+ YMjaBTlqriaF92bnZTLe7gKqHLr7J93twtJR9XvD2ETPSNCBSiRjCfja6qqcDC/AFgb9 0mZ9QTwHq52OqKP+6Dec2jQkcWZuEGq/I70ECfz5ADOBda3C6BV0jSIVKcbn2VJGMycW Pnol++2rEiR0XoY/0jE3tn3cJtb9FSR0bndcQhGVRxtiYCM8Cm2ZFhOIiZHtredlvkn9 +om3QZL6b/xMo7x7P0ZuVLhD+aJu+pY4W0K8j9TAcfPLLupScy2g1osdfdMaHj38Rmq1 U4NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=NvGQhNJMx9wuXGsgGxJ6w/feqMHwYic2rr5nrgRVonU=; b=S+4B/1VeDeO4I7yx0uney/MVhWiUWjl9sb7Gctowkh+2w0WeEmOLsbDkyDGm+xjV5I Utfe1sEHJMJ2Su0tyTe854cRSPqsj+pW3JRFcSC4ZPUZ5AsvmT7063bw4VJHqyJ60K2q rvDO8n7fy49nSspkSkjwrc9T0+53y/wEblbw6FYixqXZppgNgnWeITr6B8WnJBKIeRIg LopM5TKnVm3+sb+azNQnNyjH2RDvIqzj3fUvbkkbsNmuJh/9vtx7Mpg1nmSIpffsk8Fz nkSLC9b/vdyOyJlMSBXbfYDUoQkpb9OGm9nKPkrcMvVtYpEDQx1B2tzam2AynSzoLKXw 6mAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=DXjl8eIy; 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 33-v6si10780413plh.16.2018.08.06.09.51.58; Mon, 06 Aug 2018 09:52:14 -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=DXjl8eIy; 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 S1731371AbeHFTAe (ORCPT + 99 others); Mon, 6 Aug 2018 15:00:34 -0400 Received: from merlin.infradead.org ([205.233.59.134]:37612 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728349AbeHFTAd (ORCPT ); Mon, 6 Aug 2018 15:00:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To: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=NvGQhNJMx9wuXGsgGxJ6w/feqMHwYic2rr5nrgRVonU=; b=DXjl8eIyGP0iIgVwLpmyev+xMk E/uD9Yp7EiO11DKMdTkwiQpKbe7NTiybY3HB9GESNs44JyhO4oZ0X7liz4RvSKE6qKntL7ILne+26 nAGLvOqzknJ41Qo5G7ACpDA09gGOjNXstTSLF1W36IrTGO4L7Ksfy2tqOEY1mO22wKAWghNewMy9q xK1ERkU08MeQ1KaBhbC0nwDdVgzC1eYkQpEqiR3NQBKx68TiRLrHtD7SpecUdP8KYogViCHQGarAI un1c1WArpjXRIe3Y7DdboE7lJnrsHvObJkV4xXvANTtw+NHfN+p0KYvipH52dR8vzdL6+zSZy5zY4 qWU+n2TA==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fmii8-0002af-Hf; Mon, 06 Aug 2018 16:50:24 +0000 Subject: Re: [PATCH v3 01/14] sched/core: uclamp: extend sched_setattr to support utilization clamping To: Patrick Bellasi , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: Ingo Molnar , Peter Zijlstra , Tejun Heo , "Rafael J . Wysocki" , Viresh Kumar , Vincent Guittot , Paul Turner , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes , Steve Muckle , Suren Baghdasaryan References: <20180806163946.28380-1-patrick.bellasi@arm.com> <20180806163946.28380-2-patrick.bellasi@arm.com> From: Randy Dunlap Message-ID: Date: Mon, 6 Aug 2018 09:50:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180806163946.28380-2-patrick.bellasi@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 08/06/2018 09:39 AM, Patrick Bellasi wrote: > diff --git a/init/Kconfig b/init/Kconfig > index 041f3a022122..1d45a6877d6f 100644 > --- a/init/Kconfig > +++ b/init/Kconfig > @@ -583,6 +583,25 @@ config HAVE_UNSTABLE_SCHED_CLOCK > config GENERIC_SCHED_CLOCK > bool > > +menu "Scheduler features" > + > +config UCLAMP_TASK > + bool "Enable utilization clamping for RT/FAIR tasks" > + depends on CPU_FREQ_GOV_SCHEDUTIL > + default false default n but just omit the line completely since "n" is already the default. > + help > + This feature enables the scheduler to track the clamped utilization > + of each CPU based on RUNNABLE tasks currently scheduled on that CPU. > + > + When this option is enabled, the user can specify a min and max CPU > + bandwidth which is allowed for a task. > + The max bandwidth allows to clamp the maximum frequency a task can > + use, while the min bandwidth allows to define a minimum frequency a > + task will always use. Please clean up the indentation above to use one tab + 2 spaces on all lines. > + > + If in doubt, say N. > + > +endmenu thanks, -- ~Randy