Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp391940rdh; Thu, 26 Oct 2023 05:22:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQ7k/mC4F4QcCm1KQOYdgzfxEkjxSMozs5Iwq1AVwPbmJM/4bUH5448oTtNaE4fsh6wC/6 X-Received: by 2002:a05:6808:3af:b0:3ae:21d1:8040 with SMTP id n15-20020a05680803af00b003ae21d18040mr18189038oie.36.1698322942379; Thu, 26 Oct 2023 05:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698322942; cv=none; d=google.com; s=arc-20160816; b=IZ1VuSE5BlSG7YN3vTU+F0nQFt8icf6p8L9Ym3Jh2E4/1Qb81QqbP3zi37Uw3Ov1r+ K8yI1bplPkuSyezHBfafRmlxc2mIVdT9gGJKcxvQVtTzs6nHqGezFjOY+OuT4P/jJigJ IEM8Q9wMkemdpBgAnf6h3yMsIDB7LjC0tnWY2IZX3NPccOZs51C/rcw9DCkiKHc7NJre rstmf+50U8Fov/8HBVjrfxPQUCvJM9NLQNPXCgXnNskvNTnyS86s18V0EDWCq1LLULRz TnI0Fw11TtmsCQNqNYNIU1bGXsz3SDuvz2qQUTBj2oA9d2M2fUEBIR0K8n3uK+3mSwkA CxoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=NJL5RtnranrDp36xVTiIwHiPbU72ccXfc4Y8d/ksVzI=; fh=s+3ccwKL/Xc2i8uH9tAeSOb9IGpvLhPrVmnBNs/vSzQ=; b=nUkwPI1FkgUcEP7c6AeTUOR1gJGzOjh3VxB0c/e14WahJ1g+fQpm2PkE/mVBsQXlLq zZOMj7fKBsVH27SSTiRWPoyNX+mWfXtRGEK+Pl5fAmtkpitBlR4qK079yNtKh7M/ot9o KwtWRNB4C7NyA334Z6b0kjKB6IJxouveNhd4f7/Xe0neAvRGavxGD2/xqXDgFEzp7UB3 6qcWSxsdZ905ufMJhqomYilzx30KGEZS9rp9HZnR32Kx+DZJm697ExE8CuBMo4tdfzNi wyVs63OMeqKqEVViD8huNZQr51PFrHGMjHPYJAY1GpB9mMI2oqojjbFzfbAB28sQsTQx i5ug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id h67-20020a25d046000000b00d89433fccc3si14487294ybg.8.2023.10.26.05.22.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 05:22:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 8ED968182EE0; Thu, 26 Oct 2023 05:22:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344870AbjJZMWN (ORCPT + 99 others); Thu, 26 Oct 2023 08:22:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbjJZMWN (ORCPT ); Thu, 26 Oct 2023 08:22:13 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 28A01B9; Thu, 26 Oct 2023 05:22:10 -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 5205B2F4; Thu, 26 Oct 2023 05:22:51 -0700 (PDT) Received: from [10.57.81.157] (unknown [10.57.81.157]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D11B63F738; Thu, 26 Oct 2023 05:22:08 -0700 (PDT) Message-ID: Date: Thu, 26 Oct 2023 13:22:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/7] Minor cleanup for thermal gov power allocator Content-Language: en-US To: "Rafael J. Wysocki" Cc: linux-kernel@vger.kernel.org, daniel.lezcano@linaro.org, linux-pm@vger.kernel.org, rui.zhang@intel.com References: <20231025192225.468228-1-lukasz.luba@arm.com> From: Lukasz Luba In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed 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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 26 Oct 2023 05:22:19 -0700 (PDT) On 10/26/23 09:54, Rafael J. Wysocki wrote: > On Wed, Oct 25, 2023 at 9:21 PM Lukasz Luba wrote: >> >> 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(-) >> >> -- > > The series looks good to me overall, but I'd prefer to make these > changes in the 6.8 cycle, because the 6.7 merge window is around the > corner and there is quite a bit of thermal material in this cycle > already. Thanks for having a look! Yes, I agree, we can wait after the merge window. It just have to be cleaned one day a bit and I postponed this a few times, so no rush ;)