Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp625348ybv; Sat, 22 Feb 2020 10:54:24 -0800 (PST) X-Google-Smtp-Source: APXvYqyCG8dU2MLglWgi7xibsIXc9c/GgwN+j4b9oUnmMZN+T/MC82WGjfMToSTmxFRYo9EoHL3g X-Received: by 2002:aca:d954:: with SMTP id q81mr7050839oig.157.1582397664712; Sat, 22 Feb 2020 10:54:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582397664; cv=none; d=google.com; s=arc-20160816; b=lSjaR2JvMV+/h9c/PowiTq+SBMvFjCBxVuWSSkjXIL+qQD3u0zuPUeRuraifaffERw t1xkyaBRPMDkovQByWOV4jT3T8A9LBuNkJmvLHolAujCxQGS6X23BxxFGOHFQ8D5MGxn Bk8V2ypVJoSU+EaToD4V+exvdl2ZJV0grdxybVgGph0W0DeXemX1Qj4qqdYSJLoR6bnW 1cRbRqIB4rjWMAIcxZQsWtKosTv36yfURuS5xmRmRl9XjDp5jC84ehO8saDCOAnyPyGp owrn1RloPWGMYiQBM5EPBBgSob3F0OGQRaPVJY3S/anwsPcxIQzLsuHEOFRYp3RVVylT b/Gw== 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; bh=h+38e26tqUDo/PqZ0G1mLmF456jZ+eqfKHNlYKIxDLw=; b=JpDX+Bh2DaFiqYlTrVlVsFoWPyMYmQRVFRHpJm34sYRHxuWV2/8UiJTEobQHde1I5o vexJlR0ydyYdJLSbYXoMXzagGPcEpYz0ZCwH+cr/qBAHNPq3WP6S5iAr80/dLu+O++xi SmeXXEbPocf8oFV8UqQ03moMI/+2xMh0hCNxppW2odncpnsc47IMPzxxm+fXFZbW5HkL 0bPfzF2s6SP//kd+uC/XYQFUN9QkE9lJle1GpDRPUIjbMVHkA3nzSRQb2Bk90XmXtv53 RCAkcNTYFW3dWGYSdtRO/cW3N/F9+N0bSf8XMzUu0w40i8hbS9DAk9VgWXdfuXP5jGr4 NG0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=d9Zq3H3Z; 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 d26si3434666otc.6.2020.02.22.10.53.39; Sat, 22 Feb 2020 10:54:24 -0800 (PST) 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=bombadil.20170209 header.b=d9Zq3H3Z; 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 S1726824AbgBVSuf (ORCPT + 99 others); Sat, 22 Feb 2020 13:50:35 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:39098 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726550AbgBVSuf (ORCPT ); Sat, 22 Feb 2020 13:50:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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; bh=h+38e26tqUDo/PqZ0G1mLmF456jZ+eqfKHNlYKIxDLw=; b=d9Zq3H3Zvey+RC4W+slt5QcLlu Jc/3mOfXE15cRanwLC9GJOZhHFq+N7etLJFMOMpfsaAGWwgQ9r3Wi27zWD/koCFhCsxnO9aNDhQQU P3FLdrE9N3jbERks4Mqo99nY+mFSzLunX2LLG3OsIeMM9mRwrv34jGJAugM062TziYnNLNQ1cQy1g 9Z68ZpGKPLYiChMpa7QCvc9kbNXPf3zt+kn43DrtJpDpRKGESsuhRLL/arlf0sYkqZE+1NRpvFGPv rT1q28kOrR3MU92kjqLQ3LYR6W2xPZV5owrAplTK8EAlyh9T25ecJzRbMb8yM4N4Bj0vDFG59aejN QpcwfpsQ==; Received: from [2601:1c0:6280:3f0::19c2] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1j5ZrB-0004RH-Ey; Sat, 22 Feb 2020 18:50:29 +0000 Subject: Re: [Patch v10 1/9] sched/pelt: Add support to track thermal pressure To: Thara Gopinath , mingo@redhat.com, peterz@infradead.org, ionela.voinescu@arm.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rui.zhang@intel.com, qperret@google.com, daniel.lezcano@linaro.org, viresh.kumar@linaro.org, rostedt@goodmis.org, will@kernel.org, catalin.marinas@arm.com, sudeep.holla@arm.com, juri.lelli@redhat.com, corbet@lwn.net Cc: linux-kernel@vger.kernel.org, amit.kachhap@gmail.com, javi.merino@kernel.org, amit.kucheria@verdurent.com References: <20200222005213.3873-1-thara.gopinath@linaro.org> <20200222005213.3873-2-thara.gopinath@linaro.org> From: Randy Dunlap Message-ID: Date: Sat, 22 Feb 2020 10:50:26 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/22/20 10:27 AM, Thara Gopinath wrote: > > > On 2/21/20 7:59 PM, Randy Dunlap wrote: >> On 2/21/20 4:52 PM, Thara Gopinath wrote: >>> diff --git a/init/Kconfig b/init/Kconfig >>> index 2a25c769eaaa..8d56902efa70 100644 >>> --- a/init/Kconfig >>> +++ b/init/Kconfig >>> @@ -464,6 +464,10 @@ config HAVE_SCHED_AVG_IRQ >>>       depends on IRQ_TIME_ACCOUNTING || PARAVIRT_TIME_ACCOUNTING >>>       depends on SMP >>>   +config HAVE_SCHED_THERMAL_PRESSURE >>> +    bool "Enable periodic averaging of thermal pressure" >> >> This prompt string makes this symbol user-configurable, but >> I don't think that's what you want here. > > Hi Randy, > Thank you for the review. > Actually I thought being user-configurable is a good idea as it will allow users to easily enable it and see if the benefits their systems. (I used menuconfig while developing, to enable it). > Do you see a reason why this should not be so? > >> >>> +    depends on SMP >>> + >>>   config BSD_PROCESS_ACCT >>>       bool "BSD Process Accounting" >>>       depends on MULTIUSER Hi Thara, Is there some other way that HAVE_SCHED_THERMAL_PRESSURE can become set/enabled? for example, is it selected by any other options? The Kconfig symbols that begin with HAVE_ are usually something that are platform-specific and are usually set (selected) by other options, or they are "default y". In init/Kconfig, I see 15 other HAVE_ Kconfig symbols, and none of them have user prompt strings. They are either selected elsewhere or set inside their Kconfig block. Maybe you just want to rename the Kconfig symbol so that it does not being with HAVE_. -- ~Randy