diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2021-12-06 15:29:51 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-12-17 18:54:56 +0100 |
commit | 87ebbb8c612b1214f227ebb8f25442c6d163e802 (patch) | |
tree | 84b7cf87e59fd53f83aa350eaf938353f8ef8200 /drivers/acpi/processor_idle.c | |
parent | 0e6078c3c6737df7d0bd0c890fbadf24a27fffbb (diff) | |
download | linux-87ebbb8c612b1214f227ebb8f25442c6d163e802.tar.gz linux-87ebbb8c612b1214f227ebb8f25442c6d163e802.tar.bz2 linux-87ebbb8c612b1214f227ebb8f25442c6d163e802.zip |
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>
Diffstat (limited to 'drivers/acpi/processor_idle.c')
-rw-r--r-- | drivers/acpi/processor_idle.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 4b906bb527e8..d94794bc269e 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -565,7 +565,8 @@ static int acpi_idle_play_dead(struct cpuidle_device *dev, int index) { struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); - ACPI_FLUSH_CPU_CACHE(); + if (cx->type == ACPI_STATE_C3) + ACPI_FLUSH_CPU_CACHE(); while (1) { |