Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2791552rda; Wed, 25 Oct 2023 12:22:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGGHQuKv1tljUZ7aFVb36sr4otswK0ed0FWDCpwdOecCj1HpuKjMpiXj4SRwNkA2uTSHa/Q X-Received: by 2002:a25:d647:0:b0:d9a:45e7:c7f1 with SMTP id n68-20020a25d647000000b00d9a45e7c7f1mr869273ybg.30.1698261733317; Wed, 25 Oct 2023 12:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698261733; cv=none; d=google.com; s=arc-20160816; b=ZXdoOSsLH9uLB8al5d6aIrCcyVHuFWxVohburLFfI/7bLfv3nQcgxTN4E0VrXshTDm AgqMcbHU3DFkXxgLr8Bew+19BMHVbsIxwubsk/gSBYGRq5mXDGiLFXeESREQ5Agf7JKF n0tGVvzdc6TBkuU1YwCvF+QZZlydXjh1GlDbKw9N1Lq43ytBZQEnnHyVw7zGN/at+Tuv h26DndumgP1qRbg5cLnqrOMvPe1ILFHX4qVAHn+UdzoGTCHUEXctSV65bWBljXqpBhwP 9Pr0KkfT72HO2CV9AZePcTiBmUCS49IW9ugIc+sWXAnl0u6rxMiaMjXWc5VJmKWL6/0R f0mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=gAkESoVHIKAZFBYDsL+MiPH7e6pVgviB3JwFsLJ+DAo=; fh=8IgpUQ2T6XGOjA/qDosxdUSIIBz0a6nQ23NA8pgv1Tg=; b=z4epZG0Ls2IUWB+sMSO6L/LhmCK+TLya2OuQKX8Nk70Q7i1p4sPmd7gNNvzJ1C/ioY ES+PKtL3BdNCtpvVGzHGodu3C29qoaE7LC6Kv88TEzBMspFCf3VgOZHeuYuv2iOydPlK YE2k+yMByZO0wvkbkJs4X7opRSDwMuBoOUKxjlrIJXU/fHUU0NBhCFyDgFg3pn9RkrTN o/N1zHaRQkbbJumPlgGoqHtve2SKuMvL/lmoAiHxkX8FwUiolDatemaUI5Xt81nGRnt3 RPuvV0KmBVv5XqCxKwnpClrBu7gM1+aMq3IsSaMiFUgBrVhzIiizb1I0cRbW4+7s+4Uu pAwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id c184-20020a254ec1000000b00d9af2e13e72si11972743ybb.582.2023.10.25.12.22.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 12:22:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 44D5581D27EC; Wed, 25 Oct 2023 12:22:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229629AbjJYTVo (ORCPT + 99 others); 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 25 Oct 2023 12:22:04 -0700 (PDT) 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(-) -- 2.25.1