Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp417494rdh; Tue, 19 Dec 2023 03:01:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IFBpFJOkxW0xn8Tf3MgUE9DmPS+rxnjDu9reZqxvGJ/8YM2eeUTAsO56lYgRFejvtHkGjpW X-Received: by 2002:a17:903:185:b0:1d0:5ec3:bde6 with SMTP id z5-20020a170903018500b001d05ec3bde6mr20129158plg.66.1702983701743; Tue, 19 Dec 2023 03:01:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702983701; cv=none; d=google.com; s=arc-20160816; b=EFQ2rv6yEoL9m1hHpZa+IHHUWxmgwWkKgK7HPFNCLxkh+OZdKg2EeQICS5O3DGTexM TFLC1aQzQBsUcWb8TXTiUMkYv5QFZNQ1O8VrYsKCOlqJa7jcjVkVAGlWvXptfXH/NIkd JRwp0Os8hkzINQhvDRlEGnmMW5sgsktsjdswpgQBNlB9us4Nkd/NFg9vJzMk+1FSzvsi fVo1aS0pckj7hQEA3jFbUrNN+MkZ5WRcLZmWYv37CtO9RYSIhb8Fpbny4moL7Atv3tbT vmRBEb78ejQBFilmIGkSDquBZNv3zYCdNRRXdtdCOvRxSV2ts2qlx5CVUhVRbU6/veD2 DNnw== 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=w+hmYcnb2TD9EdSQdRk6DfLlK6l2/RVdTP5jm38Xw2w=; fh=YmW56Jjlaak1EaOYEIddWG8QfZwpR67Ad7p8iQIhC54=; b=xnbdxZ19cGKzt/DkRKQjbe299ZltAqbdLk3YktOq/fjxAa805IGc++IfcVowN7hv/x nEZi3FOypAdyZIBin2Y1A4r4W+KLsLzr9/B8GVAXj3+UGKj+F9AtJPNzEpFzWw2T9POA SC5cmUPjAZUoUSCRP5BRr9sKVLooT8BczA2ZLFy7pv7GroNYDe+6SmIkwkeHOSYuu4+d AL58Yalwf6VcuXsfgqnLT23Hl1uW6UYg36hMFWasvAo5BWM7tCnkVzRD6ZIJwazzc0gj NbzmXQZdj7bUJ2h41lVPz9k+/qmZ/7YZJPlzQhoCO4nP952brr0FzR5ApDRzCOvy19Qk 5R9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-5051-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5051-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h7-20020a170902f7c700b001d003f8b649si5053609plw.142.2023.12.19.03.01.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 03:01:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5051-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-5051-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5051-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id BE37FB216F4 for ; Tue, 19 Dec 2023 11:01:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B6401BDCE; Tue, 19 Dec 2023 10:58:51 +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 C8F381BDC2; Tue, 19 Dec 2023 10:58:48 +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 806881FB; Tue, 19 Dec 2023 02:59:32 -0800 (PST) Received: from [10.57.85.227] (unknown [10.57.85.227]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0AA653F738; Tue, 19 Dec 2023 02:58:45 -0800 (PST) Message-ID: <5f7f52a4-4f0a-4694-a743-478c5e4e4079@arm.com> Date: Tue, 19 Dec 2023 10:59:52 +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> From: Lukasz Luba In-Reply-To: <20231217175845.2jdeqaz62mmcjuwu@airbuntu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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.