diff mbox series

[04/18] fast-reboot: move de-asserting of special wakeups to the initiator

Message ID 20171119091508.28372-5-npiggin@gmail.com
State Superseded
Headers show
Series move direct controls out of fast-reboot, | expand

Commit Message

Nicholas Piggin Nov. 19, 2017, 9:14 a.m. UTC
Currently the boot CPU clears special wakeups, but after the
previous patch, that is no longer necessary. Have the initiator
finish the entire sreset sequence.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
 core/fast-reboot.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/core/fast-reboot.c b/core/fast-reboot.c
index 7147dcd9..45c8d2a4 100644
--- a/core/fast-reboot.c
+++ b/core/fast-reboot.c
@@ -327,6 +327,9 @@  static bool fast_reset_p8(void)
 	/* Send everyone else to 0x100 */
 	sreset_all_others();
 
+	prlog(PR_DEBUG, "RESET: Releasing special wakeups...\n");
+	sreset_all_finish();
+
 	return true;
 }
 
@@ -391,10 +394,6 @@  void fast_reboot(void)
 	/* Unlock, at this point we go away */
 	unlock(&reset_lock);
 
-	prlog(PR_DEBUG, "RESET: Releasing special wakeups...\n");
-
-	sreset_all_finish();
-
 	if (success) {
 		asm volatile("ba	0x100\n\t" : : : "memory");
 		for (;;)