diff mbox series

[11/18] fast-reboot: remove delay after sreset

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

Commit Message

Nicholas Piggin Nov. 19, 2017, 9:15 a.m. UTC
There is a 100ms delay when targets reach sreset which does not appear
to have a good purpose. Remove it and therefore reduce the sreset timeout
by the same amount.

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

Patch

diff --git a/core/fast-reboot.c b/core/fast-reboot.c
index 722ff1d8..72a4973a 100644
--- a/core/fast-reboot.c
+++ b/core/fast-reboot.c
@@ -448,7 +448,7 @@  void fast_reboot(void)
 		return;
 
 	/* Ensure all the sresets get through */
-	if (!cpu_state_wait_all_others(cpu_state_present, msecs_to_tb(200)))
+	if (!cpu_state_wait_all_others(cpu_state_present, msecs_to_tb(100)))
 		return;
 
 	asm volatile("ba	0x100\n\t" : : : "memory");
@@ -546,7 +546,6 @@  void __noreturn fast_reboot_entry(void);
 void __noreturn fast_reboot_entry(void)
 {
 	prlog(PR_DEBUG, "RESET: CPU 0x%04x reset in\n", this_cpu()->pir);
-	time_wait_ms(100);
 
 	/* We reset our ICP first ! Otherwise we might get stray interrupts
 	 * when unsplitting