[Skiboot] [PATCH v3 10/29] fast-reboot: remove delay after sreset

Nicholas Piggin npiggin at gmail.com
Wed Nov 29 16:36:48 AEDT 2017


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 at gmail.com>
---
 core/fast-reboot.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/core/fast-reboot.c b/core/fast-reboot.c
index a98b579ad..47b72d5f9 100644
--- a/core/fast-reboot.c
+++ b/core/fast-reboot.c
@@ -437,7 +437,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");
@@ -535,7 +535,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
-- 
2.15.0



More information about the Skiboot mailing list