Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp282108rdh; Thu, 26 Oct 2023 01:55:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGh6ola4gh1KE0SSHRWTREjsBNmBeskvj7O+6inFdlJclhcqm5evYcvUoIG3KVE3NX8a8un X-Received: by 2002:a25:ac52:0:b0:da0:41ec:5763 with SMTP id r18-20020a25ac52000000b00da041ec5763mr6992312ybd.9.1698310520195; Thu, 26 Oct 2023 01:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698310520; cv=none; d=google.com; s=arc-20160816; b=nly3IVtl5fBC1aUCjhk20zV2WNhGLeqdSkDI23n7ht6ILdAbSKIRPcNW3cyHC+8FLy U/wXztro2OUcbNPJvh2Q6l1r0z/i03/sljEkXKtVbExtjJVgx7l1Rn5FoRxDSsmuG7tC zqouG3M2pHVWkz30rkEQBPJtqgELU7bWPl0xXwiKkKeGCmAfQwhru6ddAKcwxfDx/ZPf SON2DcgsYExP9X1YDirI3QvCOBpFGP4ihobtqzEgI+rZhMhAsBi0q/qW1+SmqShFlELz rQqpKUfqLK43WsFj8GN9bhSEI1TR4iY/hgpJQlsXkSjZHfd3emaMEJGFzVTs+NCAWGRS jZlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=SKJuMsiAcDYhqFWMyFepP4GPuF1jJa8Q/6RLjRmTpnQ=; fh=wkSuoy5b1EIMGYEcqvfC1yBGuiIWNqkyE3KOqDLfZ9I=; b=Dm0vBM/RPZVrV3IjM397GylmbHf+knZArdaNmBl/XbRd/A8a/gS60Q2ALTeqpgCb1K 1CGipYpgiQ8OaFqkKmWenFR/lShbb6fXtEKBAVqXXrOmdFYsccHgtJbrcjhwHZ93Mk7r JG9AcARmBCQkwKyq+m8ZRtCuEKOh4KKEFYCHUqzqO+qxtAAuUHEB9zzH08RAFECPitHt CaELC2sgPjrs5vzH/67vzOyRlLY9g5wkqpLsuJelint0X3hg682oAzGZnLmuFR8Hx0v8 bz+AOao8ndzOt6qhVi38qW6GNpwQjc/4xNJH6R6e71ucPrVkr57IxGNar4/pIfjP8sn1 s9CA== 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:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id v88-20020a25abe1000000b00d9cb78a4cd2si13688621ybi.243.2023.10.26.01.55.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 01:55:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id A374F80DA987; Thu, 26 Oct 2023 01:55:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344646AbjJZIzD convert rfc822-to-8bit (ORCPT + 99 others); Thu, 26 Oct 2023 04:55:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234976AbjJZIyv (ORCPT ); Thu, 26 Oct 2023 04:54:51 -0400 Received: from mail-oa1-f42.google.com (mail-oa1-f42.google.com [209.85.160.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8180AD4C; Thu, 26 Oct 2023 01:54:32 -0700 (PDT) Received: by mail-oa1-f42.google.com with SMTP id 586e51a60fabf-1d542f05b9aso88955fac.1; Thu, 26 Oct 2023 01:54:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698310471; x=1698915271; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vJBpOf233+yopPlepXZVOesYvg63ifr+iPe/TQKxFsU=; b=e4PuMMkfYKmOoDLQF/cbBdpB2nxEdPDeCC3cpiMS28VdSNSALNbua0Qs/8dUdJkaDz 6+OSTspn7RiC9r3I5kMGjAR0p9voxcZi5kxt3R/AzV5bVyBdNgE//vKR24PGSSlf8Zbm 1JeD65VVaVio7kjL9DahQEgWm16Fgh9dFCjoid97FmeeNdIcAdeolLPF1+7frdlHS4oU BV/eW+rz4siNFTGMf09gL29iOgetBtcilmLC6t7IDc+rZ2tVnUAXw61SW7afWkXxow7V MuQkAj2OfN0pKmxfgEwyIvx8Sxc1rT0qmWABDy3f48c3qsaJhLRkGZKwgPzydw+lf3Fy 3OPA== X-Gm-Message-State: AOJu0YyBiaD1BGbSczOp8buGQEViB8JSe4qu5zwOgdoncZaHv724+sWX wJrJKgXMPDB/9Az/5sHfX2FuLEQT7SZtkrYJu8A= X-Received: by 2002:a4a:b985:0:b0:586:7095:126d with SMTP id e5-20020a4ab985000000b005867095126dmr7403490oop.0.1698310471356; Thu, 26 Oct 2023 01:54:31 -0700 (PDT) MIME-Version: 1.0 References: <20231025192225.468228-1-lukasz.luba@arm.com> In-Reply-To: <20231025192225.468228-1-lukasz.luba@arm.com> From: "Rafael J. Wysocki" Date: Thu, 26 Oct 2023 10:54:19 +0200 Message-ID: Subject: Re: [PATCH 0/7] Minor cleanup for thermal gov power allocator To: Lukasz Luba Cc: linux-kernel@vger.kernel.org, daniel.lezcano@linaro.org, rafael@kernel.org, linux-pm@vger.kernel.org, rui.zhang@intel.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 26 Oct 2023 01:55:16 -0700 (PDT) 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.