Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2513351ybv; Mon, 24 Feb 2020 06:37:33 -0800 (PST) X-Google-Smtp-Source: APXvYqyEmDIAO4nXeHdcLNODPqBlauQ0Qd6hyWrkRcO0hk+xMg4Vo87oUo6ha4kKsPMAnGuY1V+z X-Received: by 2002:aca:e106:: with SMTP id y6mr13047790oig.131.1582555053840; Mon, 24 Feb 2020 06:37:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582555053; cv=none; d=google.com; s=arc-20160816; b=J8b41mdHiYIrw3v+YYxozEp9fsXIEvpOtN+UjPzC3/AE7sy6KafPxqdYu+3YDYweON xW4Bdt57U1tV1pA3B3YL/ulkKKGVn4+XmlGsl9u/xKkPgYRwq0Oas9/adCLDS748FhmD MwLJORtDccluVUvib18SISKb+vSWDeH7NooGNrDS+4wukaT8LB+2Xce3LOZmEQ4jYx+c 2x338y+fNVmJBBWCQKFKlgzsRHbavUw7Q0nckEe+Z3a7Dc0ZeA2PLYQNDEvU9rJ0lHxj AH35Qho9Uj3O3FKVd3WQUEWsUM0rvh8fBm7PMlWFWjwqxH8EGVJuFHMDyD10VsqwHdnk E3uA== 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=KtVE+M/QzqjMA0LXVSAcGGMxNRrQrUffaB41/q7Jg7E=; b=sKzp91ABi9s/T9RBNZHJcMSTQHmgkoKRlW+9phjwLhE3VC9C4Y51640T6lJ2ogLs1k XqO+7AAeV/Vti1y3PNG288E74pVC0+bm3k+n8ZUgbxYJFfDlU6j2ACem9YNEWkSMg576 u1fXZQQN3wtJLSQcT7hn+91p3bMirUGyqwTHq0JqCexXj8A/gYGWQHyr/KhuyNlvWer7 aYPjbFAyuFIHywrUMqJOSNqdG302n7XHScWEdfGpC/2I6rpZAWn6QUtFSUvqhmRUsYln f9BUlLT1wJdmlr3EPJqNz/VidLj2m4KdlNEbOuB7qAZkFgwWpoQtqZMYPSLaNdq+xUcQ 2LfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QfjzaEZh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 24si4891814oiz.237.2020.02.24.06.37.21; Mon, 24 Feb 2020 06:37:33 -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=pass header.i=@linaro.org header.s=google header.b=QfjzaEZh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727743AbgBXOd0 (ORCPT + 99 others); Mon, 24 Feb 2020 09:33:26 -0500 Received: from mail-qv1-f65.google.com ([209.85.219.65]:41054 "EHLO mail-qv1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727640AbgBXOd0 (ORCPT ); Mon, 24 Feb 2020 09:33:26 -0500 Received: by mail-qv1-f65.google.com with SMTP id s7so4205968qvn.8 for ; Mon, 24 Feb 2020 06:33:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=KtVE+M/QzqjMA0LXVSAcGGMxNRrQrUffaB41/q7Jg7E=; b=QfjzaEZh6clLZyrsSHBjJB+To7NtJfJxhD5peI+XskEUG/RgcoA7WjXzki6TFtfVd9 6pQwY/8J2YuRA9AJgCLb1JB6K8eGI03JqEjvUwBUR8jByLJl7WLLWDypOGdr4CRoyGUJ pPdBen41DO+mXyqv54p5ITDQBky8Bwj+bTkip5sjyG06mwrFCbIZpnQmHeIpoWRcEP0D Uvsw6A6s5FCzT9s74Y5An4aVXJXrRquWj+KsOGdaibeqtVYRc15SlGN1oe3cfcamxw4E 21E+lbWk748iykOqWMR9E9+EF7ZYB6Nd1fu1tssSFnPAt37x/6F9mgDZ5Ywzz5YLpsSP qfTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=KtVE+M/QzqjMA0LXVSAcGGMxNRrQrUffaB41/q7Jg7E=; b=K0uMCZ/vomwbD/enLSq7ex1LGk4DOdE9hQlasgoJdzwkcvtQznbFyYYNxiX1mrIXB6 G4ZzLYEvtyQqTUauank1zmf0yL+L+gh9zTRmPmJanbzvRi+XlA6OFJOvr9ptWAG2M2W6 RZtRGhuOkiqtav3MqUmJINWxviu37VCJQ1rBxPcz3KkHwZNHtcRV4nQIq+Fwfe6oJJ5F DCNRdm/zxwJLnz1BCvt+DsI/YWRcJ/egtHXzRQ54uInwd0D3yQyXicLeSuanusOadyPl m+P/YRfP1P3oKvdNwplSMJNq4TPww+TGcM+BDzmwSTVEkZCYp6EfHNjcvtUexAt8tSLk uQXw== X-Gm-Message-State: APjAAAUeONepWtPJRNC+sD+fJEt3R0q5RymP7zwxZw5Y8PLs/JlE3bJA RT8LfClBmFSt4BKHTF7dKIkRPA== X-Received: by 2002:a0c:f6cd:: with SMTP id d13mr43722790qvo.20.1582554804777; Mon, 24 Feb 2020 06:33:24 -0800 (PST) Received: from [192.168.1.92] (pool-71-255-246-27.washdc.fios.verizon.net. [71.255.246.27]) by smtp.gmail.com with ESMTPSA id g2sm4813805qka.42.2020.02.24.06.33.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Feb 2020 06:33:24 -0800 (PST) Subject: Re: [Patch v10 1/9] sched/pelt: Add support to track thermal pressure To: Randy Dunlap , 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: Thara Gopinath Message-ID: <2c680a71-31ee-3a9a-4859-5c4cbc9dc0e1@linaro.org> Date: Mon, 24 Feb 2020 09:33:22 -0500 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; format=flowed 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 1:50 PM, Randy Dunlap wrote: > 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_. Hi Randy, I see what you mean. I will send an update to this patch with HAVE_ removed. It is not selected by any other options. Best is for user to select it or platform/SoC configs to enable it. > > -- Warm Regards Thara