Skip to content

Commit 8fa2f8b

Browse files
zhang-ruirafaeljw
authored andcommitted
ACPI: processor: idle: Set pr->flags.power unconditionally
acpi_processor_get_power_info_default() ensures that the processor's ACPI_STATE_C1 state is always valid. Consequently, the pr->flags.power should be set unconditionally after this. Remove conditional checks and directly set pr->flags.power. No functional change. Signed-off-by: Zhang Rui <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent f762568 commit 8fa2f8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/processor_idle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,11 @@ static int acpi_processor_get_cstate_info(struct acpi_processor *pr)
481481
acpi_processor_get_power_info_default(pr);
482482

483483
pr->power.count = acpi_processor_power_verify(pr);
484+
pr->flags.power = 1;
484485

485486
for (i = 1; i < ACPI_PROCESSOR_MAX_POWER; i++) {
486487
if (pr->power.states[i].valid) {
487488
pr->power.count = i;
488-
pr->flags.power = 1;
489489
}
490490
}
491491

0 commit comments

Comments
 (0)