Skip to content

Commit

Permalink
ACPI: PM: Avoid CPU cache flush when entering S4
Browse files Browse the repository at this point in the history
According to ACPI 6.4, Section 16.2, the CPU cache flushing is
required on entering to S1, S2, and S3.

No need to flush the caches during hibernation (S4).

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Kirill A. Shutemov authored and Rafael J. Wysocki committed Dec 8, 2021
1 parent 0fcfb00 commit 53d01e2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/acpi/sleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,8 +903,6 @@ static int acpi_hibernation_enter(void)
{
acpi_status status = AE_OK;

ACPI_FLUSH_CPU_CACHE();

/* This shouldn't return. If it returns, we have a problem */
status = acpi_enter_sleep_state(ACPI_STATE_S4);
/* Reprogram control registers */
Expand Down

0 comments on commit 53d01e2

Please sign in to comment.