diff mbox series

[2/2] ACPI: processor: idle: Remove obsolete comment

Message ID 20250328143040.9348-2-ggherdovich@suse.cz
State New
Headers show
Series [1/2] ACPI: processor: idle: Return an error if both P_LVL{2,3} idle states are invalid | expand

Commit Message

Giovanni Gherdovich March 28, 2025, 2:30 p.m. UTC
Since commit 496121c02127e9c460b436244c38260b044cc45a ("ACPI: processor:
idle: Allow probing on platforms with one ACPI C-state"), the comment
doesn't reflect the code anymore; remove it.

Signed-off-by: Giovanni Gherdovich <ggherdovich@suse.cz>
---
 drivers/acpi/processor_idle.c | 4 ----
 1 file changed, 4 deletions(-)

Comments

Zhang Rui April 9, 2025, 12:54 a.m. UTC | #1
On Fri, 2025-03-28 at 15:30 +0100, Giovanni Gherdovich wrote:
> Since commit 496121c02127e9c460b436244c38260b044cc45a ("ACPI:
> processor:
> idle: Allow probing on platforms with one ACPI C-state"), the comment
> doesn't reflect the code anymore; remove it.
> 
> Signed-off-by: Giovanni Gherdovich <ggherdovich@suse.cz>

This is a standalone cleanup, and further cleanups are posted in a
separate patch set on top of this one, so

Acked-by: Zhang Rui <rui.zhang@intel.com>

> ---
>  drivers/acpi/processor_idle.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/drivers/acpi/processor_idle.c
> b/drivers/acpi/processor_idle.c
> index b181f7fc2090..2a076c7a825a 100644
> --- a/drivers/acpi/processor_idle.c
> +++ b/drivers/acpi/processor_idle.c
> @@ -482,10 +482,6 @@ static int acpi_processor_get_cstate_info(struct
> acpi_processor *pr)
>  
>  	pr->power.count = acpi_processor_power_verify(pr);
>  
> -	/*
> -	 * if one state of type C2 or C3 is available, mark this
> -	 * CPU as being "idle manageable"
> -	 */
>  	for (i = 1; i < ACPI_PROCESSOR_MAX_POWER; i++) {
>  		if (pr->power.states[i].valid) {
>  			pr->power.count = i;
diff mbox series

Patch

diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index b181f7fc2090..2a076c7a825a 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -482,10 +482,6 @@  static int acpi_processor_get_cstate_info(struct acpi_processor *pr)
 
 	pr->power.count = acpi_processor_power_verify(pr);
 
-	/*
-	 * if one state of type C2 or C3 is available, mark this
-	 * CPU as being "idle manageable"
-	 */
 	for (i = 1; i < ACPI_PROCESSOR_MAX_POWER; i++) {
 		if (pr->power.states[i].valid) {
 			pr->power.count = i;