Skip to content

Commit 87ebbb8

Browse files
kirylrafaeljw
authored andcommitted
ACPI: processor: idle: Only flush cache on entering C3
According to ACPI 6.4, Section 8.2, CPU cache flushing required on entering the C3 power state. Avoid flushing the cache on entering other C-states. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> [ rjw: Changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 0e6078c commit 87ebbb8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/acpi/processor_idle.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,8 @@ static int acpi_idle_play_dead(struct cpuidle_device *dev, int index)
565565
{
566566
struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu);
567567

568-
ACPI_FLUSH_CPU_CACHE();
568+
if (cx->type == ACPI_STATE_C3)
569+
ACPI_FLUSH_CPU_CACHE();
569570

570571
while (1) {
571572

0 commit comments

Comments
 (0)