From patchwork Wed Oct 25 19:22:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 738077 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 813DAC0032E for ; Wed, 25 Oct 2023 19:21:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229557AbjJYTVo (ORCPT ); Wed, 25 Oct 2023 15:21:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjJYTVo (ORCPT ); Wed, 25 Oct 2023 15:21:44 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 48D4213A; Wed, 25 Oct 2023 12:21:41 -0700 (PDT) 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 904C92F4; Wed, 25 Oct 2023 12:22:22 -0700 (PDT) Received: from e129166.arm.com (unknown [10.57.81.88]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B0F103F738; Wed, 25 Oct 2023 12:21:39 -0700 (PDT) From: Lukasz Luba To: linux-kernel@vger.kernel.org, daniel.lezcano@linaro.org, rafael@kernel.org Cc: linux-pm@vger.kernel.org, rui.zhang@intel.com, lukasz.luba@arm.com Subject: [PATCH 0/7] Minor cleanup for thermal gov power allocator Date: Wed, 25 Oct 2023 20:22:18 +0100 Message-Id: <20231025192225.468228-1-lukasz.luba@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi all, The patch set does some small clean up for Intelligent Power Allocator. Those changes are not expected to alter the general functionality. They just improve the code reading. Only patch 3/7 might improve the use case for binding the governor to thermal zone (very unlikely in real products, but it's needed for correctness). The changes are based on top of current PM thermal branch, so with the new trip points. Regards, Lukasz Lukasz Luba (7): thermal: gov_power_allocator: Rename trip_max_desired_temperature thermal: gov_power_allocator: Setup trip points earlier thermal: gov_power_allocator: Check the cooling devices only for trip_max thermal: gov_power_allocator: Rearrange the order of variables thermal: gov_power_allocator: Use shorter variable when possible thermal: gov_power_allocator: Remove unneeded local variables thermal: gov_power_allocator: Clean needed variables at the beginning drivers/thermal/gov_power_allocator.c | 123 ++++++++++++++------------ 1 file changed, 64 insertions(+), 59 deletions(-)