Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3549736imm; Tue, 17 Jul 2018 06:42:44 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe9JhtsFWqx5Mw2CDRLzqI3EE4K7roz4tQDXBzpcnXXzTC+XnemD4DdApSKrLlAWGRxjQ/j X-Received: by 2002:a63:ba10:: with SMTP id k16-v6mr1674930pgf.145.1531834964099; Tue, 17 Jul 2018 06:42:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531834964; cv=none; d=google.com; s=arc-20160816; b=rCPkN/UDccSxhQkrjfS3wuMWZ8kuFzz8gudsTrd36bFPNEyht2YYuZLTZ6QAMbDpsq dA6rBU0HG7wgpb0ukMQ7z0b+r9IX9wxlQgzDM098jj79KftGbSolgroBLl76WGQKn8Aa 9GjfbvjGFcZY900Az3jO6Vw23JeZ2YU6Uzmt89DkaM8H1YAfGOvTDItBg05MXCpro9cw gDRwR0EvyC2Pm2rZDEvuBQm25NtuJ7On+5MXhqqTUry/meWhS5uT1nqAXoUWMSVQFj4K XbGeQm5v/XD4jW05IrK+fREehS3p8hqVNg5J5lQGr8v3SIVlXuyz8By/1sAzrN/65Fs2 CKQQ== 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:arc-authentication-results; bh=Zw5J4qrazEBWfjDra/pkYnT8wmcXCTJe3T5hQev9Jeg=; b=KDVV2lZFVTDmM05lkwkHKip4tc6+GuD3suMI2PQqMcyvdzNoTFumzpP0Q6+W9kmPby oTkbY8vAymUwvgCKVsaWYX35GlMv/MHLc0hxwagkvwbWz3cF/eF1hV8Z5l0L9H8apZAc nBSsDgdeA16QgIz52G3bxSHc1IFvndFKijOUsiUAMKb2YI8GVKKa5HcmqCbjW+8mdmxg i0qYNiiPeaT5Daibf7IYN+sghljobvyVw6tCumtKOIK8HYMApnrZ6HqOJCEqm3htX2iW 59x1NIeUfQntK4uAOV5lvBk7kzy2pU4DTcry5HVOfgU+Qe6+0ZvzpF4b9P0vCETzmqB3 VWSg== 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 a10-v6si926562pln.349.2018.07.17.06.42.28; Tue, 17 Jul 2018 06:42:44 -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 S1731646AbeGQOOh (ORCPT + 99 others); Tue, 17 Jul 2018 10:14:37 -0400 Received: from foss.arm.com ([217.140.101.70]:46854 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731551AbeGQOOh (ORCPT ); Tue, 17 Jul 2018 10:14:37 -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 4B55318A; Tue, 17 Jul 2018 06:41:54 -0700 (PDT) Received: from e110439-lin (e110439-lin.cambridge.arm.com [10.1.210.68]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7D71F3F5B1; Tue, 17 Jul 2018 06:41:51 -0700 (PDT) Date: Tue, 17 Jul 2018 14:41:48 +0100 From: Patrick Bellasi To: Joel Fernandes Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, 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 Subject: Re: [PATCH v2 00/12] Add utilization clamping support Message-ID: <20180717134148.GH32302@e110439-lin> References: <20180716082906.6061-1-patrick.bellasi@arm.com> <20180717130357.GA17824@joelaf.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180717130357.GA17824@joelaf.mtv.corp.google.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17-Jul 06:03, Joel Fernandes wrote: > On Mon, Jul 16, 2018 at 09:28:54AM +0100, Patrick Bellasi wrote: > > Documentation/admin-guide/cgroup-v2.rst | 25 + > > include/linux/sched.h | 53 ++ > > include/uapi/linux/sched.h | 4 +- > > include/uapi/linux/sched/types.h | 66 +- > > init/Kconfig | 63 ++ > > kernel/sched/core.c | 876 ++++++++++++++++++++++++ > > While I'm reviewing these patches, I had a quick thought. core.c is already > 7k+ lines. Based on this diffstat, does it make sense for uclamp to be in its > own kernel/sched/uclamp.c file? Good point. I've added it to core.c because it's logically part of the core scheduler and we have some calls which are part of the fast path and thus we want to avoid function calls. I guess that, provided we can rely on LTOs, we can try to move it into a separate file. Let see what Ingo and Peter thing about this. > thanks, > > - Joel -- #include Patrick Bellasi