aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/kernel/idle_book3s.S5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/idle_book3s.S b/arch/powerpc/kernel/idle_book3s.S
index ba79d15f4ddd..07a330ed7022 100644
--- a/arch/powerpc/kernel/idle_book3s.S
+++ b/arch/powerpc/kernel/idle_book3s.S
@@ -363,8 +363,8 @@ _GLOBAL(power9_idle_stop)
363 * cr3 - set to gt if waking up with partial/complete hypervisor state loss 363 * cr3 - set to gt if waking up with partial/complete hypervisor state loss
364 */ 364 */
365_GLOBAL(pnv_restore_hyp_resource) 365_GLOBAL(pnv_restore_hyp_resource)
366 ld r2,PACATOC(r13);
367BEGIN_FTR_SECTION 366BEGIN_FTR_SECTION
367 ld r2,PACATOC(r13);
368 /* 368 /*
369 * POWER ISA 3. Use PSSCR to determine if we 369 * POWER ISA 3. Use PSSCR to determine if we
370 * are waking up from deep idle state 370 * are waking up from deep idle state
@@ -395,6 +395,9 @@ END_FTR_SECTION_IFSET(CPU_FTR_ARCH_300)
395 */ 395 */
396 clrldi r5,r13,63 396 clrldi r5,r13,63
397 clrrdi r13,r13,1 397 clrrdi r13,r13,1
398
399 /* Now that we are sure r13 is corrected, load TOC */
400 ld r2,PACATOC(r13);
398 cmpwi cr4,r5,1 401 cmpwi cr4,r5,1
399 mtspr SPRN_HSPRG0,r13 402 mtspr SPRN_HSPRG0,r13
400 403