Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp403858ybh; Sun, 12 Jul 2020 10:02:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzIL2gQNfOEdpSkhg2C+oC6U654W/JuKlyqnYrPKnxlP43yvj95GGqPe3bR473i8NFoAfu X-Received: by 2002:a17:906:cd18:: with SMTP id oz24mr70509823ejb.118.1594573365833; Sun, 12 Jul 2020 10:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594573365; cv=none; d=google.com; s=arc-20160816; b=jQ4UcxV2aJkIOZLaJKLXrm2+CDWiH9mSFQ63Wcw0gcaOvhlWgUmR4B6snLrq3D9Wx2 vJzjqfeLpuMs7QDtOym7jCXdVYO6VcscDjprFLaVKLedAGKVRfyTFnXi4WiWU6yoaZCu XwUlYvbFcyaztLD7XKPe4AajCgpfB836gS5zSn72CgBrwxX1rod9utBFVP/eBJaTkMvC egdd0hQ8n9yZy8jyBVxArHn1Bz9CMFa/2n7LPpldl1Cp1+RJQcKXlDVJgdqf04rlGG1G i3XwAnh6K//cQEyGxzmMoKjyot/Vitbc6RZk74BjT3tUILW/2FyBzKJ1vvRXwoBZ79E3 2DjA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=hJps4hkrw5XFfFWmQVAKSgKRQbKDIw6f654EIePiJrI=; b=Na26p3ub557EOImis9tINKfbtDxJDVMx6JPH0Bcp4d7rg0nQy7s1KQTN0LHKCdmeuw i2JXHTMFeBw+1m1aVBaDD9SJy9QERTIdz6abEFK8CAW8l1J+oW2nkig9P4A9XWGGiPuX ZxQIgPQ9mey6qBNzWaq+5ppf3x8avMiiANe4qvJ8VqQdCiJkWBe8MypXBjAsRTu8SZCD k8g9boVlCWHi12LLhXf7JqewNLmbswQ935t6++pDVA2YNyJthKTVIaQjfmxYLhFjiXoN qpLP+nZfALEnk0Ev555DL5SWHemXnGbl5fJYLIbWmlaLB3eMXkcBs94YwnYHdPH8CyKN S6SQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si7590687edq.206.2020.07.12.10.02.23; Sun, 12 Jul 2020 10:02:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729235AbgGLQ7h (ORCPT + 99 others); Sun, 12 Jul 2020 12:59:37 -0400 Received: from foss.arm.com ([217.140.110.172]:47916 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729216AbgGLQ7g (ORCPT ); Sun, 12 Jul 2020 12:59:36 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BFA1BC0A; Sun, 12 Jul 2020 09:59:35 -0700 (PDT) Received: from e113632-lin.cambridge.arm.com (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id DFA963F7D8; Sun, 12 Jul 2020 09:59:33 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Cc: Russell King , Thara Gopinath , Sudeep Holla , Amit Daniel Kachhap , Daniel Lezcano , Viresh Kumar , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann Subject: [PATCH v2 2/3] sched: Cleanup SCHED_THERMAL_PRESSURE kconfig entry Date: Sun, 12 Jul 2020 17:59:16 +0100 Message-Id: <20200712165917.9168-3-valentin.schneider@arm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200712165917.9168-1-valentin.schneider@arm.com> References: <20200712165917.9168-1-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As Russell pointed out [1], this option is severely lacking in the documentation department, and figuring out if one has the required dependencies to benefit from turning it on is not straightforward. Make it non user-visible, and add a bit of help to it. While at it, make it depend on CPU_FREQ_THERMAL. [1]: https://lkml.kernel.org/r/20200603173150.GB1551@shell.armlinux.org.uk Signed-off-by: Valentin Schneider --- init/Kconfig | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/init/Kconfig b/init/Kconfig index 0498af567f70..0a97d85568b2 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -492,8 +492,21 @@ config HAVE_SCHED_AVG_IRQ depends on SMP config SCHED_THERMAL_PRESSURE - bool "Enable periodic averaging of thermal pressure" + bool depends on SMP + depends on CPU_FREQ_THERMAL + help + Select this option to enable thermal pressure accounting in the + scheduler. Thermal pressure is the value conveyed to the scheduler + that reflects the reduction in CPU compute capacity resulted from + thermal throttling. Thermal throttling occurs when the performance of + a CPU is capped due to high operating temperatures. + + If selected, the scheduler will be able to balance tasks accordingly, + i.e. put less load on throttled CPUs than on non/less throttled ones. + + This requires the architecture to implement + arch_set_thermal_pressure() and arch_get_thermal_pressure(). config BSD_PROCESS_ACCT bool "BSD Process Accounting" -- 2.27.0