Skip to content

Commit 366fb13

Browse files
nathanlynchmpe
authored andcommitted
powerpc/pseries/hibernation: switch to rtas_ibm_suspend_me()
rtas_suspend_last_cpu() and related code perform a lot of work that isn't relevant to the hibernation workflow. All other CPUs are offline when called so there is no need to place them in H_JOIN or prod them on resume, nor is there need for retries or operations on shared state. Call the rtas_ibm_suspend_me() wrapper function directly from pseries_suspend_enter() instead of using rtas_suspend_last_cpu(). Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20201207215200.1785968-23-nathanl@linux.ibm.com
1 parent 395b2c0 commit 366fb13

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎arch/powerpc/platforms/pseries/suspend.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,7 @@ static void pseries_suspend_enable_irqs(void)
7676
**/
7777
static int pseries_suspend_enter(suspend_state_t state)
7878
{
79-
int rc = rtas_suspend_last_cpu(&suspend_data);
80-
81-
atomic_set(&suspending, 0);
82-
atomic_set(&suspend_data.done, 1);
83-
return rc;
79+
return rtas_ibm_suspend_me(NULL);
8480
}
8581

8682
/**

0 commit comments

Comments
 (0)