Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp378830pjb; Wed, 22 Jul 2020 02:13:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpbAD2NPc58rgaeMN/J7fqDAu6n/yurD7N04PhsIsmIuiqK+ThN+b7GkSGehDVVfq2+ZyF X-Received: by 2002:a17:906:c04d:: with SMTP id bm13mr28639840ejb.321.1595409206103; Wed, 22 Jul 2020 02:13:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595409206; cv=none; d=google.com; s=arc-20160816; b=xImXS49g6dfkZqMu7ZLe0un0XbaXGNpAZZ4ZCTZ237zSFzZ+NTgzapmGlUc/SgxHjg M/KFWC79/RVcX2DVn82YF/b0+gr0bN0gTG9Waj0MQ+SNvbKaI6glQCfjEDhSNZA1dAu8 6Q6E5wvGdy7QpfZEScSHhDqRX19xFiJPZC21nrwNAVsGAqiOBhRqVvqAt3lIrS5Ais5z Xo9fHmCeR08Un+8JRRNwG9PvWES5Zg4IfGpEEdG0zDgaKAZUYQUKaaQL/en/MzCMRSy7 atBPILR3aDD1yV9LKDKBc0QQyyvxBbKB4l4Jr2t2j5r9GybSW8EwLd45rmg01zrXxPRL 89yQ== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=33vlhfoXAvi92zjdyqBNFRkNoHys63suSf2USBDLYXQ=; b=OMPb2dtiWktJkYSQ/B5GXOMvgD/6iCnxh+UV/0eell0W51wlA/ds0iw3Vohr+DQFpF MhnlLBXMYfYkvPZBIB6BX6xQsKhV7h3nmkCiyM0KH958vyI/mMxeSrbqkU3Qz1fS0E6T 70k9dXsg168WPlORN+sNku1pudrQCz1OF1xka5r1B3UxlaRAutRczffWjJvE3EVxUISp bfUO/EKCinKP8aavoJYX1kxGtYM7taz+Z3xs497wFvN2lvN6uDczJiQhxGJm6cv0MC2b aW4omZk8NM479l4fvbz2vh/zisgl7mxudrCjPv716/v9xzZxFdtMtb2ipct1aWydOCTb L4vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=tbfbpQQD; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=AZ59no4p; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x5si14982068edl.596.2020.07.22.02.13.03; Wed, 22 Jul 2020 02:13:26 -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; dkim=fail header.i=@linutronix.de header.s=2020 header.b=tbfbpQQD; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=AZ59no4p; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731079AbgGVJM3 (ORCPT + 99 others); Wed, 22 Jul 2020 05:12:29 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:46908 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728911AbgGVJM1 (ORCPT ); Wed, 22 Jul 2020 05:12:27 -0400 Date: Wed, 22 Jul 2020 09:12:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1595409144; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=33vlhfoXAvi92zjdyqBNFRkNoHys63suSf2USBDLYXQ=; b=tbfbpQQDP0Ztro2l29E5OPD5121XmWoA8fhw16YU/SFA5BaN9ldzZny6b7tBs/PaJXyq8B kyjaX/aXetXw2SvRXkMYmKPthqi1NdXMLbwsyWKgM9kWARJyIjgwNvQxbbOWqy1Wli5ZiI Kfwko3X1uV2XflKfYFDnagFbvgmnebjry/z1G1QQc7/PtirArsyWVT17PUGJcB6N9vdWgO TICQw+PLjtgHi01+eu/GqqyitjbQv+L5S4lTZoc+3J9bQmCQ7meLG5cQW4Tf25dxilLeNN 8Uk0ZzorEk9efp9tTl7LcK3wo3yfNTnsxl3M2AQMHXRiu/JgtPD4g6otSUoWYQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1595409144; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=33vlhfoXAvi92zjdyqBNFRkNoHys63suSf2USBDLYXQ=; b=AZ59no4pS29XZKisNZoZYMFOuO8Soib6upttg9E7VamohVfR4JbixGhD/7xKpTS+2XNg0b bmlpxdfYb3WxH6Cg== From: "tip-bot2 for Valentin Schneider" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched: Cleanup SCHED_THERMAL_PRESSURE kconfig entry Cc: Valentin Schneider , "Peter Zijlstra (Intel)" , x86 , LKML In-Reply-To: <20200712165917.9168-3-valentin.schneider@arm.com> References: <20200712165917.9168-3-valentin.schneider@arm.com> MIME-Version: 1.0 Message-ID: <159540914411.4006.17518831755080064888.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: 98eb401d09301d8a38c31cc8851ba95ac9385c8f Gitweb: https://git.kernel.org/tip/98eb401d09301d8a38c31cc8851ba95ac9385c8f Author: Valentin Schneider AuthorDate: Sun, 12 Jul 2020 17:59:16 +01:00 Committer: Peter Zijlstra CommitterDate: Wed, 22 Jul 2020 10:22:06 +02:00 sched: Cleanup SCHED_THERMAL_PRESSURE kconfig entry 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 Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20200712165917.9168-3-valentin.schneider@arm.com --- init/Kconfig | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/init/Kconfig b/init/Kconfig index 0498af5..0a97d85 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"