From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE18079C4; Tue, 12 Nov 2024 08:21:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731399675; cv=none; b=KQ6702ifZ1iIOzVzVc4szybC5rbxwrJw7Sz04lM/MNzg0Up4jAEaGGaQSZby2sZ/GuI/5QfwbsigQRZAGarHSYXtcQ9J5Mw43QL8Y+KWXAGeNstbNXDRvQiqsJOrxf6IclvZ+JR8xU1xtBpdFObiOwztk1fagkroVQgD08fmLc8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731399675; c=relaxed/simple; bh=m3Kwm25d9MQbLfy8dkgOBKH4jNlX+GSOrop7fV+jQJI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=HkK5+rlHvTTd3eACgaCCckHc6U/WVOPNqbtonyqGM8M3XwXmaGnC6dqmaNfnuao8gRkhGvqsvXYqUtNT/Iz2sLR5zzSaG+9hu+UvnELPmNs/4lrmTNjSJRdogsBDQVeRxVN38+t9cklCqZtLdFQWIitid7ftLoZHuRbjBhdqTd8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 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 608EF12FC; Tue, 12 Nov 2024 00:21:40 -0800 (PST) Received: from [192.168.178.6] (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 005B83F6A8; Tue, 12 Nov 2024 00:21:08 -0800 (PST) Message-ID: <03c00c7c-d0f8-4002-8fe0-7d06ac2e030b@arm.com> Date: Tue, 12 Nov 2024 09:21:07 +0100 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: [RFC][PATCH v0.1 2/6] PM: EM: Call em_compute_costs() from em_create_perf_table() To: "Rafael J. Wysocki" , Linux PM Cc: LKML , Lukasz Luba , Peter Zijlstra , Srinivas Pandruvada , Len Brown , Morten Rasmussen , Vincent Guittot , Ricardo Neri References: <3607404.iIbC2pHGDl@rjwysocki.net> <1821040.VLH7GnMWUR@rjwysocki.net> From: Dietmar Eggemann Content-Language: en-US In-Reply-To: <1821040.VLH7GnMWUR@rjwysocki.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 08/11/2024 17:37, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > In preparation for subsequent changes, move the em_compute_costs() > invocation from em_create_perf_table() to em_create_pd() which is its > only caller. You have to do this since em_create_perf_table() is only called when 'if (cb->active_power) != NULL'. And 'cb->active_power == NULL' is what you use for your new 'stub' PD case. Maybe worth mentioning already here? You do mention this in the following patch though. [...]