Commit 87ebbb8c authored by Kirill A. Shutemov's avatar Kirill A. Shutemov Committed by Rafael J. Wysocki
Browse files

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: default avatarKirill A. Shutemov <kirill.shutemov@linux.intel.com>
[ rjw: Changelog edits ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 0e6078c3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -565,6 +565,7 @@ static int acpi_idle_play_dead(struct cpuidle_device *dev, int index)
{
	struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu);

	if (cx->type == ACPI_STATE_C3)
		ACPI_FLUSH_CPU_CACHE();

	while (1) {