Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26341143rwd; Mon, 3 Jul 2023 08:24:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlHos9uSUdNmIWC8cGZDvWQqeFuYHM+DgQ83KD+aAjuYT1rati3r3ZQRfcALl0pIlvZdQ01u X-Received: by 2002:a17:902:d2cd:b0:1b5:64a4:bea0 with SMTP id n13-20020a170902d2cd00b001b564a4bea0mr10323840plc.10.1688397894553; Mon, 03 Jul 2023 08:24:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688397894; cv=none; d=google.com; s=arc-20160816; b=NZLto7SpDk4V0XBtcwdXI6nD930opf9zi16MQc9wuTgMSR53DotgYmomCWpvkkgjBL TPF2RK7tq6aUWAcNS0OvZbnq7AvrELlUPVGrKDAjIvJVs0W82XX4SPshVqabb7ESn5VV Mr2Xqr8rfYQxa+0ST6G/hueIMl+wv+w6XCI7EJB1NMiV/5a0IajRd5PU8u3peRry4kVd oxq591NNjDbXOmR9sQXZjtUTvg4KT522yz1KAFRvKrSx8/O2VrKe+bDRaYvuQNaeO+MR 9qwDkcyPRAtDDHAaGVUtYZ3853q8x3pjbwyvYeX1oLsG6Ynut9hcY1/JFbyrNnuYWRpW LRxg== 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=xq6Bsnnl9h8gAgOoIPQJIsUn22NUfh5mp/+uxO1Du7o=; fh=Wo22gSJCRwTLyDzb41myy9Bl+2SFoGi1RZ4iP0fKd98=; b=qSpIvgtIDb2P6z5k3vZOYnA1BEOgn2g26V9JWzFUcrhia5YJ1PWOtvSz1n3XVDFJ5O CVFNdte0NgClh5DzdIDcFwCyItcseHynPOdX39Vu1RW822fR0CJezzihQp3TiU+VhN2Q WW+GhH4faell3ePYd4iek95OGXQb2PuI9XgKzec70kFSmKHcNX6p9VgLuRxa1khJTRWy rcdpfpyKlFwWYM+TAoJR4wZSuQf4VJzmNtRR4sChrU2ub1aSYnJ5n4NABJs57V3FbQZc YyrboRQmVtX+bJeRtO45+hvh/JI9NrFhHFqbAJpIhoW1jfhGeIOOD6iKd5YBhYWVJqM7 fPeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jb22-20020a170903259600b001b51313b1c7si11081857plb.19.2023.07.03.08.24.23; Mon, 03 Jul 2023 08:24:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231775AbjGCPJX (ORCPT + 99 others); Mon, 3 Jul 2023 11:09:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231703AbjGCPJQ (ORCPT ); Mon, 3 Jul 2023 11:09:16 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D811FE7B; Mon, 3 Jul 2023 08:09:12 -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 5ADD12F4; Mon, 3 Jul 2023 08:09:55 -0700 (PDT) Received: from [10.57.27.93] (unknown [10.57.27.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1F36E3F663; Mon, 3 Jul 2023 08:09:09 -0700 (PDT) Message-ID: <3140f1a0-59e7-7269-1678-fb0ee904e727@arm.com> Date: Mon, 3 Jul 2023 16:09:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2 04/17] PM: EM: Create a new function em_compute_costs() Content-Language: en-US To: Dietmar Eggemann Cc: 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, Pierre.Gondois@arm.com, ionela.voinescu@arm.com, rostedt@goodmis.org, mhiramat@kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, rafael@kernel.org References: <20230512095743.3393563-1-lukasz.luba@arm.com> <20230512095743.3393563-5-lukasz.luba@arm.com> <46beae55-6a87-6365-d8c5-b707f87b181e@arm.com> From: Lukasz Luba In-Reply-To: <46beae55-6a87-6365-d8c5-b707f87b181e@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/30/23 10:51, Dietmar Eggemann wrote: > On 12/05/2023 11:57, Lukasz Luba wrote: >> Create a dedicated function which will be easier to maintain and re-use > > I guess `refactor` would be more suitable than `create` here? Good point, I'll rephrase that. > > AFAICS, you factor out em_compute_costs() from em_create_perf_table() so > you can use it later for the updater of the runtime modifiable EM > em_dev_update_perf_domain() (in 10/17) as well. > > [...] yes