Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6439821rdb; Tue, 2 Jan 2024 01:42:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHA7zV11XtNs2cVrECKDTSD8TQXD3sTGv1upz8AB8lCEvULCz1tZ1IpN6Chl4XTS2grJtG X-Received: by 2002:a0d:e906:0:b0:5e8:879d:b002 with SMTP id s6-20020a0de906000000b005e8879db002mr11815253ywe.93.1704188539858; Tue, 02 Jan 2024 01:42:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704188539; cv=none; d=google.com; s=arc-20160816; b=heK5qPouycx9TieZlT1HOESFF6oJ07qJgS/Ze0yRjEx/jR7el91m/V+vr8LCCBrh6g fVjSVwXzGYkekzovxWfQLQB3qhfEyvEkQJ86K6NUxEEKllNQTPixIAdP2X9i1t3Fs18O Ae5Ho/1dIOgb6tTYonBtyYInCZeF/vs+bDdnS3ZDcHoD1Ukjnp+2IRdlocRoQK2tJdOZ aqBv0wojW25AHykzFu6HtEjsk+Yk2sRHRJurhRGeuqeuJ5xtnpKy2cLmwoOZ6a4TjyRs hRpwFLSIHjO9VT+YfRIjPIjyO9EKedGPzaNrgHI9n7VjToZ55RvvSevXvdxHh1+RkAEK TFGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=oIaJ4XDoCLERmNdOmkXyLEoO28W9yRmwbCuqQBxxxUI=; fh=YmW56Jjlaak1EaOYEIddWG8QfZwpR67Ad7p8iQIhC54=; b=ML0smLLHvv8lz8tE5jLdEVoNEyEbOIL7luSorAq2VuStQMn4Wt7xWFf+27I1a2VYzT YmPgMzwVtevkyE21/yz0i/ntNyFQdOcpud2ZtR2Ec7HfuWxocKY22yO48fMGAJQZPGli YQorEuShoobE46CHH3eG0gA8HQGCfsUQcxfjn2ICEPSuIFVAOsfrCIWgjM7ilhpvSdOs Ng9cz8b2ouH/IIEWD8L8I9wqP51fWrpx6zJw9UM4OJTJ6RlkY45Jh3fu5ii//8aUUXE/ FIzPKc1li/XBCoynF4GQzcpTZqd5DILxhUoNw4MhQO1wEikcf7FG7hwVPILjkz9Dgsxh 9lZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-14201-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14201-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d10-20020a0cf0ca000000b0067f3c4a99ffsi26637014qvl.317.2024.01.02.01.42.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 01:42:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14201-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-14201-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14201-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9CD4C1C2181B for ; Tue, 2 Jan 2024 09:42:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43C9DD2F0; Tue, 2 Jan 2024 09:41:52 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 54FCBD298; Tue, 2 Jan 2024 09:41:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 08204C15; Tue, 2 Jan 2024 01:42:36 -0800 (PST) Received: from [10.57.86.61] (unknown [10.57.86.61]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 80FFA3F7A6; Tue, 2 Jan 2024 01:41:47 -0800 (PST) Message-ID: <58b0f68f-80bc-411f-9c41-c751d353687b@arm.com> Date: Tue, 2 Jan 2024 09:43:06 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 05/23] PM: EM: Refactor a new function em_compute_costs() Content-Language: en-US To: Qais Yousef Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, rafael@kernel.org, dietmar.eggemann@arm.com, rui.zhang@intel.com, amit.kucheria@verdurent.com, amit.kachhap@gmail.com, daniel.lezcano@linaro.org, viresh.kumar@linaro.org, len.brown@intel.com, pavel@ucw.cz, mhiramat@kernel.org, wvw@google.com References: <20231129110853.94344-1-lukasz.luba@arm.com> <20231129110853.94344-6-lukasz.luba@arm.com> <20231217175845.2jdeqaz62mmcjuwu@airbuntu> <5f7f52a4-4f0a-4694-a743-478c5e4e4079@arm.com> <20231228171441.jgyjtp3knbtcqgf7@airbuntu> From: Lukasz Luba In-Reply-To: <20231228171441.jgyjtp3knbtcqgf7@airbuntu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/28/23 17:14, Qais Yousef wrote: > On 12/19/23 10:59, Lukasz Luba wrote: >> >> >> On 12/17/23 17:58, Qais Yousef wrote: >>> On 11/29/23 11:08, Lukasz Luba wrote: >>>> Refactor a dedicated function which will be easier to maintain and re-use >>>> in future. The upcoming changes for the modifiable EM perf_state table >>>> will use it (instead of duplicating the code). >>> >>> nit: What is being refactored? Looks like you took em_compute_cost() out of >>> em_create_perf_table(). >> >> Yes, it's going to be re-used later for also update code path, not only >> register code path. > > Sorry I was terse. I meant the commit message could be clearer to require less > effort untangling what is actually being changed. OK, I will rephrase that description. Thanks.