From nobody Wed Oct 1 23:30:09 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D4F621D3CA; Fri, 26 Sep 2025 10:32:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758882730; cv=none; b=MV8tgl9wbrOanbygT9LOyV1dagHoZnQ1lJuQ7+M87fDuKY0qWjbgBPVG/CgM2jqi3cbCeb/fsK88Uovw+OfI10cPODvGnQV3oVi0w7XLwzFuw5uJ6WorQteT3dXz1PTXhfjInXvK/T1dkzx+SQEbtWL07HJlA46lAEVwzwAZRPc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758882730; c=relaxed/simple; bh=zQ7iVOebrADHg1ETUTT0wq0YKxEAlyaSm+7dipeK7GM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=B5joB7ltoTwVlW3cFU0BOk25v1OypkcZRzqLr1eacAiIEbRsv8qWU5PWn/zDuljU0Exg8cwkIGj17Gp3uOtaKmYzKT9ZgP3Rgq7gJsrLM8eQvq3/VYXk3tPhf36RTAdjNzxvf3bswcHT6zE5K4MLjgoey+0KLCLdrmqXe9yJugw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=l3wxb2tk; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="l3wxb2tk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE341C4CEF4; Fri, 26 Sep 2025 10:32:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1758882730; bh=zQ7iVOebrADHg1ETUTT0wq0YKxEAlyaSm+7dipeK7GM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l3wxb2tkEfrM3P24jZ7njaJrVdECP0LXrDU3m389Dx47Css5/SXsWQI6ccf9Ld/MT dtae7bHC5FWn4wce/iAB8pMSLEqggMgQxnU1LOQR2lJmjPTAp2Tl2WJvT2WR1bR8oa HLzqSiO0OdSUEOoMOnehxmm6MouWZDICN+pj/XlpRZvypHAyXOOrT99K+pPG5IlP72 y565N8+BbpH1O0WiQ+ALSuyYWHpWeDN+aWZwEOZqLLYyYA9VodM2vUebueKdlxapO7 UoxQPO7cTDktEr8hMfZrkDSRQCiEBSIBAxAcTY2NcMggtlyy3yFfZFhhj2iqpVF9Op aa3N/qx18WB7g== From: "Rafael J. Wysocki" To: Linux PM Cc: Shawn Guo , Qais Yousef , LKML , Viresh Kumar , Pierre Gondois , Mario Limonciello , Linux ACPI , Jie Zhan Subject: [PATCH v3 4/4] cpufreq: Drop unused symbol CPUFREQ_ETERNAL Date: Fri, 26 Sep 2025 12:31:47 +0200 Message-ID: <3679164.iIbC2pHGDl@rafael.j.wysocki> Organization: Linux Kernel Development In-Reply-To: <5069803.31r3eYUQgx@rafael.j.wysocki> References: <5069803.31r3eYUQgx@rafael.j.wysocki> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Rafael J. Wysocki Drop CPUFREQ_ETERNAL that has no users any more along with all references to it in the documentation. No functional impact. Reviewed-by: Mario Limonciello (AMD) Reviewed-by: Jie Zhan Signed-off-by: Rafael J. Wysocki --- v1 -> v3: Add tags from Mario Limonciello and Jie Zhan --- Documentation/admin-guide/pm/cpufreq.rst | 4 ---- Documentation/cpu-freq/cpu-drivers.rst | 3 +-- Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst | 3 +-- Documentation/translations/zh_TW/cpu-freq/cpu-drivers.rst | 3 +-- include/linux/cpufreq.h | 5 ----- 5 files changed, 3 insertions(+), 15 deletions(-) --- a/Documentation/admin-guide/pm/cpufreq.rst +++ b/Documentation/admin-guide/pm/cpufreq.rst @@ -274,10 +274,6 @@ are the following: The time it takes to switch the CPUs belonging to this policy from one P-state to another, in nanoseconds. =20 - If unknown or if known to be so high that the scaling driver does not - work with the `ondemand`_ governor, -1 (:c:macro:`CPUFREQ_ETERNAL`) - will be returned by reads from this attribute. - ``related_cpus`` List of all (online and offline) CPUs belonging to this policy. =20 --- a/Documentation/cpu-freq/cpu-drivers.rst +++ b/Documentation/cpu-freq/cpu-drivers.rst @@ -109,8 +109,7 @@ Then, the driver must fill in the follow +-----------------------------------+-------------------------------------= -+ |policy->cpuinfo.transition_latency | the time it takes on this CPU to | | | switch between two frequencies in | -| | nanoseconds (if appropriate, else | -| | specify CPUFREQ_ETERNAL) | +| | nanoseconds | +-----------------------------------+-------------------------------------= -+ |policy->cur | The current operating frequency of | | | this CPU (if appropriate) | --- a/Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst +++ b/Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst @@ -112,8 +112,7 @@ CPUfreq=E6=A0=B8=E5=BF=83=E5=B1=82=E6=B3=A8=E5=86=8C=E4= =B8=80=E4=B8=AAcpufreq_driv | | = | +-----------------------------------+-------------------------------------= -+ |policy->cpuinfo.transition_latency | CPU=E5=9C=A8=E4=B8=A4=E4=B8=AA=E9=A2= =91=E7=8E=87=E4=B9=8B=E9=97=B4=E5=88=87=E6=8D=A2=E6=89=80=E9=9C=80=E7=9A=84= =E6=97=B6=E9=97=B4=EF=BC=8C=E4=BB=A5 | -| | =E7=BA=B3=E7=A7=92=E4=B8=BA=E5=8D=95= =E4=BD=8D=EF=BC=88=E5=A6=82=E4=B8=8D=E9=80=82=E7=94=A8=EF=BC=8C=E8=AE=BE=E5= =AE=9A=E4=B8=BA | -| | CPUFREQ_ETERNAL=EF=BC=89 = | +| | =E7=BA=B3=E7=A7=92=E4=B8=BA=E5=8D=95= =E4=BD=8D | | | = | +-----------------------------------+-------------------------------------= -+ |policy->cur | =E8=AF=A5CPU=E5=BD=93=E5=89=8D=E7=9A= =84=E5=B7=A5=E4=BD=9C=E9=A2=91=E7=8E=87(=E5=A6=82=E9=80=82=E7=94=A8) = | --- a/Documentation/translations/zh_TW/cpu-freq/cpu-drivers.rst +++ b/Documentation/translations/zh_TW/cpu-freq/cpu-drivers.rst @@ -112,8 +112,7 @@ CPUfreq=E6=A0=B8=E5=BF=83=E5=B1=A4=E8=A8=BB=E5=86=8A=E4= =B8=80=E5=80=8Bcpufreq_driv | | = | +-----------------------------------+-------------------------------------= -+ |policy->cpuinfo.transition_latency | CPU=E5=9C=A8=E5=85=A9=E5=80=8B=E9=A0= =BB=E7=8E=87=E4=B9=8B=E9=96=93=E5=88=87=E6=8F=9B=E6=89=80=E9=9C=80=E7=9A=84= =E6=99=82=E9=96=93=EF=BC=8C=E4=BB=A5 | -| | =E7=B4=8D=E7=A7=92=E7=88=B2=E5=96=AE= =E4=BD=8D=EF=BC=88=E5=A6=82=E4=B8=8D=E9=81=A9=E7=94=A8=EF=BC=8C=E8=A8=AD=E5= =AE=9A=E7=88=B2 | -| | CPUFREQ_ETERNAL=EF=BC=89 = | +| | =E7=B4=8D=E7=A7=92=E7=88=B2=E5=96=AE= =E4=BD=8D | | | = | +-----------------------------------+-------------------------------------= -+ |policy->cur | =E8=A9=B2CPU=E7=95=B6=E5=89=8D=E7=9A= =84=E5=B7=A5=E4=BD=9C=E9=A0=BB=E7=8E=87(=E5=A6=82=E9=81=A9=E7=94=A8) = | --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -26,13 +26,8 @@ *********************************************************************/ /* * Frequency values here are CPU kHz - * - * Maximum transition latency is in nanoseconds - if it's unknown, - * CPUFREQ_ETERNAL shall be used. */ =20 -#define CPUFREQ_ETERNAL (-1) - #define CPUFREQ_DEFAULT_TANSITION_LATENCY_NS NSEC_PER_MSEC =20 #define CPUFREQ_NAME_LEN 16