From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E20273AB26D for ; Wed, 8 Jul 2026 01:08:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783472899; cv=none; b=rHfNg5szv3nlOYEzFW5KI2OdMsGjnwNwcAtMnGSA5dpF97xTWe88vPAo+w/ryf+uiqow2REubcmw8FASbKMsR1WWlr0B9tQ4+f7e1k1fJy4c41v0Hi0rB/HUhz6QhExhZF7cg08A4BHdK6EKYdGbGpTvnvQj/IOQ/HkxF/ddT+0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783472899; c=relaxed/simple; bh=HHSTrAAV6VhLJ8/+eLocLEiha0Nzqz3h8PgCzVvtwLE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=NY/nbg1Ho++uP7jOOBCHmP8/kPJ6AI4GwbvBiFa6rRQnMxFOA48C1Q+4liFwBhbmo5FOnHBidtCRIJPSPPVOXtVCEQ5ijjuufQQxR40KwQLufnMkH2szfHb6RBHkIAyghWOBJuNVpVWvgqfjkcpak91saTJhth6yQbmOjM1exl8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NhUmI3dE; arc=none smtp.client-ip=209.85.216.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NhUmI3dE" Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-37cab825ec9so162147a91.1 for ; Tue, 07 Jul 2026 18:08:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783472897; x=1784077697; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=t0K3zUAUUIcohgWNlh4z4WVCeVlkyYgQv8ni2kcRyow=; b=NhUmI3dERDLbAlHurtXEm8oYS0gihFzHujhhtKlMczcyH6/WPWXQNslUbCwJ/BZnN1 Y7bqmBUJWriBTAfMFgLb3Gk48yBakYA+jEsBpDj7UvU8Usu4iMiSBPgFN7ohrCTFokDk jzot5dk4y4B2Rs3z+o/o4IlPIsgXoupCupgIEU3+vKLlM/fIG0E2mxaFgCeFJFpOdo0G AFtyvb0B3Gys1QNbw5lj2ybg1B/XDyTu1sZZVJvI1PT/PkYL+fPRKG8sHfNGh+z0G0iu IOZMTMKeDenD4L/eWKtMjpZCe3PZWfBPKSRoh2meQ2n2/n14sqzeTd43mRCgOyh2iDCR q4SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783472897; x=1784077697; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=t0K3zUAUUIcohgWNlh4z4WVCeVlkyYgQv8ni2kcRyow=; b=ntQ17CtDeftrsjrxgUCZ64cMhWsKAh2Mb8qsq4QVfg+Pay1b2au6birnq/3/AeBDtq 82c6CbtUjJZAFw3/c2uJDMh5P5hOvRQ8Cz0SkJJ7oo8LEVWPQZZsTGOl+yvjVGkKqXSp tguVkFx15/aFyjQORIwGCEkaY6BesZF3UvyYBtPNanPwqTjlOPNI7UUpgy8hekHvYp/j rCdkcxcCMa7o6kGQhRHcF5CvAfbRCE0ZVb3zSWOmAWpzvJE+xF1ZBWrroOd3C2FHDUE4 MYEaoQd301Mi6l7XfyLCmCzZ3q5pOe9CeUtdXw3YtrwLO0Q1dHVNgio3D8qHOdJIX7IF o7Vg== X-Forwarded-Encrypted: i=1; AHgh+RoSpaJCwDNk7Ky9y7HIkgjn0Fxzo7dJSuOUurxweBj5oYRa+y4SY8aSLiF90+2ADxkidQ9e2Q06rO5Pr1E=@vger.kernel.org X-Gm-Message-State: AOJu0YyJ2emAXq7p+wT0Lr2MyvfSL44xXnXwPW4BS+wkuo5cm7xiXxmG PGPoR+tdGcVlz09Niwfpu7/ORMfX/uhN1iW+Ut7+nBJzfnq3UB2J0+eg X-Gm-Gg: AfdE7ckjYOQNmY7yvaoDrkMMny0BPxYGwnuB+DzK90VAdOGs0nCbdtaUaV1BgNCHBBL Y7riEy43Wbf0+IAx68DPaXk9r7cV0bJy0PqDjo+XoehNP+q81daHO745zdB+tM8rKH/qPG2uBBg dXM+9wRXQsmyuwdrkXurIQSAy+i+tIIgsQtRPiglXOARHv2KphOfwffQTyvCu58oDjaJrkfiM30 TUIPSRdubvudcKucj+FXtyHKxKP70idm9S3itoAfBSsbNAMQQ02dQVhfk7q0UuKCGdcBeImHwQo sFsChLowRts2Be9kB5twAstx/QQ7hB3606pTTlrsM4qdxXLs6DJGQVdP+ETaLlk1ROTtDsW6SH6 +FMQHQJIineHmjMefZPYxG3f2Y1K04u7Flcmu8LIhndWXcWt+UzEenV/HkclXPtawt1AtkIWeU/ Cz4PGZIq057sgPDKvLCVsKDg3rGrCESMvz1hWCbifRBlQ55oxfR+vf6Q== X-Received: by 2002:a17:90b:2ccd:b0:37f:c22a:c188 with SMTP id 98e67ed59e1d1-3894014cafcmr275585a91.4.1783472897145; Tue, 07 Jul 2026 18:08:17 -0700 (PDT) Received: from ?IPV6:240e:38b:e68:3a01:5516:6588:891a:b868? ([240e:38b:e68:3a01:5516:6588:891a:b868]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-38903295585sm213699a91.2.2026.07.07.18.08.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Jul 2026 18:08:16 -0700 (PDT) Message-ID: Date: Wed, 8 Jul 2026 09:08:09 +0800 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] sched/doc: Fix stale em_pd_energy() reference in sched-energy To: luoliang@kylinos.cn, Jonathan Corbet Cc: Shuah Khan , Alex Shi , Yanteng Si , Dongliang Mu , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260707085335.2942128-1-luoliang@kylinos.cn> From: Alex Shi Content-Language: en-US In-Reply-To: <20260707085335.2942128-1-luoliang@kylinos.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2026/7/7 16:53, luoliang@kylinos.cn wrote: > From: Liang Luo > > The scheduler energy-aware placement documentation refers to the > em_pd_energy() API, which was renamed to em_cpu_energy() in commit > f0b5694791ce ("PM / EM: change name of em_pd_energy to em_cpu_energy"). > Update the reference to the current name. > > em_cpu_energy() is the EM helper that compute_energy() in > kernel/sched/fair.c calls to estimate a performance domain's energy > consumption (defined in include/linux/energy_model.h). > > Sync the zh_CN translation, which carries the same stale name. > > Signed-off-by: Liang Luo Reviewed-by: Alex Shi > --- > Documentation/scheduler/sched-energy.rst | 2 +- > Documentation/translations/zh_CN/scheduler/sched-energy.rst | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/Documentation/scheduler/sched-energy.rst b/Documentation/scheduler/sched-energy.rst > index 4e47aaf103eb..83bac0da4869 100644 > --- a/Documentation/scheduler/sched-energy.rst > +++ b/Documentation/scheduler/sched-energy.rst > @@ -141,7 +141,7 @@ in its previous activation. > find_energy_efficient_cpu() uses compute_energy() to estimate what will be the > energy consumed by the system if the waking task was migrated. compute_energy() > looks at the current utilization landscape of the CPUs and adjusts it to > -'simulate' the task migration. The EM framework provides the em_pd_energy() API > +'simulate' the task migration. The EM framework provides the em_cpu_energy() API > which computes the expected energy consumption of each performance domain for > the given utilization landscape. > > diff --git a/Documentation/translations/zh_CN/scheduler/sched-energy.rst b/Documentation/translations/zh_CN/scheduler/sched-energy.rst > index fdbf6cfeea93..03dedc69839a 100644 > --- a/Documentation/translations/zh_CN/scheduler/sched-energy.rst > +++ b/Documentation/translations/zh_CN/scheduler/sched-energy.rst > @@ -119,7 +119,7 @@ EAS覆盖了CFS的任务唤醒平衡代码。在唤醒平衡时,它使用平 > > 如果唤醒的任务被迁移,find_energy_efficient_cpu()使用compute_energy()来估算 > 系统将消耗多少能量。compute_energy()检查各CPU当前的利用率情况,并尝试调整来 > -“模拟”任务迁移。EM框架提供了API em_pd_energy()计算每个性能域在给定的利用率条件 > +“模拟”任务迁移。EM框架提供了API em_cpu_energy()计算每个性能域在给定的利用率条件 > 下的预期能量消耗。 > > 下面详细介绍一个优化能量消耗的任务放置决策的例子。 > -- 2.43.0 >