Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp403520ybh; Sun, 12 Jul 2020 10:02:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyltm1Ymr+mx1X7ldn1SVvWluVpGAXMucHUlDjyikDaXcI6rnKUHGmM9xG0PwcecBJZeZ4y X-Received: by 2002:aa7:c3d8:: with SMTP id l24mr78530752edr.97.1594573338512; Sun, 12 Jul 2020 10:02:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594573338; cv=none; d=google.com; s=arc-20160816; b=TDfcwiQoQpL2DPA70tGRjXAupDkmfR62TqPzEidvpoGL/sVIuDdIa9jS8wkrJ5D8RH LjR7S1M/gAdCrifwV3eiDQvPJdoA9dKbGtdwYzMDy67GkiSclnl//VRK9MqxcnGKG+Mr EWSZDZxvtFzoSHgQHeZOOdec7yn9QVUQqsf/RSNHxZxtepr3+dh3fVb9YZkXuNpRh8E+ uMUdZfA39bRd4o2rQL/6v/ZkZqMV4JIpzJWxNw4woUzLSdDpVC88I6W77FBhu/ELswX+ ONFS08R0m00x9KP9wDrq8I/2KC14qzUP1h/Q2+MPlTIq31Kzc7ehMc9I1ijFeh24yxfj GsVw== 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 :message-id:date:subject:cc:to:from; bh=/0dLYHF3SLP2g27lbfGuTDT4/Nkhy5SJQNzwYb1em8A=; b=e/4w75pgeGbjkDiZGngcVrvB8hx/VlwX3wzFknjJKg+66rpou7nLhQzoKOZvEJDKMP hMvaOQOXasuLrBbkNOLOG2FBp+G1Dfs4yuqQlbSbWGjdfBWtqVyQlfv/dXkYF+nU1g5i b0vsN2TKE3+wm1YpFK9FLUkO+ivkeGwlQ4svO+VSF9Pc62e5Q+t4tMevHm0KHsEyiU9b l8we+JaaSKwCVy7kIZOQeKnrAvD4DRYPvuKDsizJguSw+URh/YwWdVoHuO3Mh3iqjVfB 6JYOO/Zz3lRJumZm3ySxRBrIbcj8dlfsh1FkpyK0tSG6FYvqzXjgKswCFVZddRCSVqUP ulcQ== 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 co17si3391748edb.437.2020.07.12.10.01.55; Sun, 12 Jul 2020 10:02:18 -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 S1729197AbgGLQ7c (ORCPT + 99 others); Sun, 12 Jul 2020 12:59:32 -0400 Received: from foss.arm.com ([217.140.110.172]:47884 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728859AbgGLQ7c (ORCPT ); Sun, 12 Jul 2020 12:59:32 -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 9299D30E; Sun, 12 Jul 2020 09:59:31 -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 B043E3F7D8; Sun, 12 Jul 2020 09:59:29 -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 0/3] sched, arch_topology: Thermal pressure configuration cleanup Date: Sun, 12 Jul 2020 17:59:14 +0100 Message-Id: <20200712165917.9168-1-valentin.schneider@arm.com> X-Mailer: git-send-email 2.27.0 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 Hi folks, This stems from this thread [1] on the list. TL;DR: the thermal pressure config has no helpful documentation, and figuring out if the right dependencies are in place is not easy for a regular user. The current landscape also paints an odd picture: arch_set_thermal_pressure() is hardcoded in sched/core.c, and is *not* architecture-definable, while arch_get_thermal_pressure() is. Patch 1 is tackling this, the rest is Kconfig stuff. Cheers, Valentin [1]: https://lkml.kernel.org/r/20200603173150.GB1551@shell.armlinux.org.uk Revisions ========= v1 -> v2 -------- o Remove cpufreq_cooling.c weak function; use #define stub in sched/topology.h (Vincent) o Hinge arm SCHED_THERMAL_PRESSURE selection on ARM_CPU_TOPOLOGY Valentin Schneider (3): arch_topology, sched/core: Cleanup thermal pressure definition sched: Cleanup SCHED_THERMAL_PRESSURE kconfig entry arm, arm64: Select CONFIG_SCHED_THERMAL_PRESSURE arch/arm/Kconfig | 1 + arch/arm/include/asm/topology.h | 3 ++- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/topology.h | 3 ++- drivers/base/arch_topology.c | 11 +++++++++++ include/linux/arch_topology.h | 4 ++-- include/linux/sched/topology.h | 7 +++++++ init/Kconfig | 15 ++++++++++++++- kernel/sched/core.c | 11 ----------- 9 files changed, 40 insertions(+), 16 deletions(-) -- 2.27.0