Skip to content

Commit 708e994

Browse files
committed
ACPI: processor: idle: Set pr->flags.power unconditionally
JIRA: https://issues.redhat.com/browse/RHEL-114091 commit 8fa2f8b Author: Zhang Rui <rui.zhang@intel.com> Date: Wed, 09 Apr 2025 16:16:38 +0000 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 <rui.zhang@intel.com> Link: https://patch.msgid.link/20250409005026.1932637-2-rui.zhang@intel.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
1 parent 24a5320 commit 708e994

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
@@ -489,11 +489,11 @@ static int acpi_processor_get_cstate_info(struct acpi_processor *pr)
489489
acpi_processor_get_power_info_default(pr);
490490

491491
pr->power.count = acpi_processor_power_verify(pr);
492+
pr->flags.power = 1;
492493

493494
for (i = 1; i < ACPI_PROCESSOR_MAX_POWER; i++) {
494495
if (pr->power.states[i].valid) {
495496
pr->power.count = i;
496-
pr->flags.power = 1;
497497
}
498498
}
499499

0 commit comments

Comments
 (0)