Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4269811rwd; Tue, 30 May 2023 03:02:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4uHE7L9bCC+8k3QAzmKCilFLxvGVlD0toEnodh3sn33AB6TpkAHwmTiMTqx/7iBxsn4jqb X-Received: by 2002:a17:902:ec81:b0:1ae:2b95:7125 with SMTP id x1-20020a170902ec8100b001ae2b957125mr2133807plg.63.1685440921902; Tue, 30 May 2023 03:02:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685440921; cv=none; d=google.com; s=arc-20160816; b=gD4BG2l4FtxIYos4ztU9ilSbn3xkIMT0aVCQa92ZUMnjpja6T/4fOv7VSXgfyiQxbR 7uOpyLGWCWSasWzyrTCWFo9e+HU6zHFbnKPtxyW4Ok/bkqn9ynnUsqT4e3bFzzQJVLOK dycSEYXBvH1giQIysEdA8njqbvX5AbUv5ktmvXBBMfEdJTiqRp5J7O9Z31GeRqIepQWx +8+QJvVxpEZ6Pi+Mcm73Wqb9JAYNrcgrmAnMlXmepHqWN/Sotxo47/1yr2DjeJK1bWui cL0ANf+rW+ACK8iBRr7/kQR5pC7YiKk9Fx6fot/dWrMLyDpj9pqKTA829pDPZZMjqeJb QDYA== 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=Yyw2MjxKsaUhdEnWDGHtjpPnd/MgyEIn5A2+cDK35Rg=; b=EiAVt+toyalrcnYCYFGJ75iLnAuB9zqVr7lwk1yOSFjsSi20P0dbCIu5UztCIzbylw VUj64H312kIRjVbHeD+JKcfA2Xh04g0dSnR9xeFXoTBP2gnUkiysLtzWzjJfjxb9naFZ SkqBb5gKoG6drh9x8Q2zN9rmhbpER5yITRVcY64Bk/uyMTF/MS6MzC4jrphN5CgEq/St iWONexiqS02sxq8mGI4jnayyQ5Ly4He8ye9ZBInVsVwTrIbN0heI8GTGJMJukyX+ftkK StPA2UcNKayp2qtFjwHjnfN/EIqIzy6/84GFpC4o+AZiHpBydGs+0FUP6gMFcE0Flpbl pCfg== 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 w11-20020a170902d70b00b001b06e17610fsi232703ply.321.2023.05.30.03.01.47; Tue, 30 May 2023 03:02:01 -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 S230501AbjE3JwH (ORCPT + 99 others); Tue, 30 May 2023 05:52:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230231AbjE3JwF (ORCPT ); Tue, 30 May 2023 05:52:05 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E4FAB1B5; Tue, 30 May 2023 02:51:39 -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 D1BDC2F4; Tue, 30 May 2023 02:52:24 -0700 (PDT) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 643D03F67D; Tue, 30 May 2023 02:51:37 -0700 (PDT) Message-ID: <46beae55-6a87-6365-d8c5-b707f87b181e@arm.com> Date: Tue, 30 May 2023 11:51:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2 04/17] PM: EM: Create a new function em_compute_costs() Content-Language: en-US To: Lukasz Luba , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, rafael@kernel.org 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 References: <20230512095743.3393563-1-lukasz.luba@arm.com> <20230512095743.3393563-5-lukasz.luba@arm.com> From: Dietmar Eggemann In-Reply-To: <20230512095743.3393563-5-lukasz.luba@arm.com> Content-Type: text/plain; charset=UTF-8 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 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? 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. [...]