ACPI: Remove references to ACPI_STATE_S2 from acpi_pm_enter
PATCH 1/1 ACPI: Remove references to ACPI_STATE_S2 from acpi_pm_enter
From: Rafael J. Wysocki <[email protected]>
Remove references to ACPI_STATE_S2, introduced by acpi-implement-the-set_target-callback-from-pm_ops.patch, from acpi_pm_enter().
drivers/acpi/sleep/main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
drivers/acpi/sleep/main.c +4 -5
@@ -80,8 +80,8 @@ static int acpi_pm_prepare(void)* acpi_pm_enter - Actually enter a sleep state. * @pm_state: ignored * -* Flush caches and go to sleep. For STR or S2, we have to call -* arch-specific assembly, which in turn call acpi_enter_sleep_state(). +* Flush caches and go to sleep. For STR we have to call arch-specific +* assembly, which in turn call acpi_enter_sleep_state(). * It's unfortunate, but it works. Please fix if you're feeling frisky. */
@@ -94,7 +94,7 @@ static int acpi_pm_enter(suspend_state_tACPI_FLUSH_CPU_CACHE ();/* Do arch specific saving of state. */ -if (acpi_state ==ACPI_STATE_S2 || acpi_state ==ACPI_STATE_S3 ) { +if (acpi_state ==ACPI_STATE_S3 ) {int error =acpi_save_state_mem ();if (error) {
@@ -111,7 +111,6 @@ static int acpi_pm_enter(suspend_state_t status =acpi_enter_sleep_state (acpi_state);break ; -case ACPI_STATE_S2 :case ACPI_STATE_S3 :do_suspend_lowlevel ();break ;
@@ -135,7 +134,7 @@ static int acpi_pm_enter(suspend_state_tprintk (KERN_DEBUG "Back to C!\n" );/* restore processor state */ -if (acpi_state ==ACPI_STATE_S2 || acpi_state ==ACPI_STATE_S3 ) +if (acpi_state ==ACPI_STATE_S3 )acpi_restore_state_mem ();return ACPI_SUCCESS (status) ?0 : -EFAULT ;
Quoted 7 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
Remove references to
ACPI_STATE_S2, introduced by acpi-implement-the-set_target-callback-from-pm_ops.patch, fromacpi_pm_enter().Signed-off-by Rafael J. Wysocki <[email protected]>
per SubmittingPatches, please try to remember to follow the comments and preceed the diffstat with a line having just '---'
Applied.
thanks Rafael,
-Len
Quoted 49 lines
drivers/acpi/sleep/main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)Index:
linux-2.6.23-rc1/drivers/acpi/sleep/main.c
===================================================================drivers/acpi/sleep/main.c +4
-6@@ -80,8 +80,8 @@ static int acpi_pm_prepare(void)* acpi_pm_enter - Actually enter a sleep state. * @pm_state: ignored * -* Flush caches and go to sleep. For STR or S2, we have to call -* arch-specific assembly, which in turn call acpi_enter_sleep_state(). +* Flush caches and go to sleep. For STR we have to call arch-specific +* assembly, which in turn call acpi_enter_sleep_state(). * It's unfortunate, but it works. Please fix if you're feeling frisky. */ @@ -94,7 +94,7 @@ static int acpi_pm_enter(suspend_state_tACPI_FLUSH_CPU_CACHE ();/* Do arch specific saving of state. */ -if (acpi_state ==ACPI_STATE_S2 || acpi_state ==ACPI_STATE_S3 ) { +if (acpi_state ==ACPI_STATE_S3 ) {int error =acpi_save_state_mem ();if (error) {@@ -111,7 +111,6 @@ static int acpi_pm_enter(suspend_state_t status =acpi_enter_sleep_state (acpi_state);break ; -case ACPI_STATE_S2 :case ACPI_STATE_S3 :do_suspend_lowlevel ();break ;@@ -135,7 +134,7 @@ static int acpi_pm_enter(suspend_state_tprintk (KERN_DEBUG "Back to C!\n" );/* restore processor state */ -if (acpi_state ==ACPI_STATE_S2 || acpi_state ==ACPI_STATE_S3 ) +if (acpi_state ==ACPI_STATE_S3 )acpi_restore_state_mem ();return ACPI_SUCCESS (status) ?0 : -EFAULT ; -To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html