From 811bd8811138f015d65516c95e4ecd93a8fce809 Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 25 May 2022 14:30:13 +0800 Subject: [PATCH] improve reboot timings after root key init --- services/root-keys/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/root-keys/src/main.rs b/services/root-keys/src/main.rs index e9a30da8c..0d59eed00 100644 --- a/services/root-keys/src/main.rs +++ b/services/root-keys/src/main.rs @@ -601,7 +601,7 @@ fn xmain() -> ! { ticktimer.sleep_ms(1500).unwrap(); if !reboot_initiated { // set a wakeup alarm a couple seconds from now -- this is the coldboot - llio.set_wakeup_alarm(3).unwrap(); + llio.set_wakeup_alarm(5).unwrap(); // allow EC to snoop, so that it can wake up the system llio.allow_ec_snoop(true).unwrap(); @@ -612,6 +612,7 @@ fn xmain() -> ! { log::info!("rebooting now!"); reboot_initiated = true; + ticktimer.sleep_ms(2000).unwrap(); } // refresh the message if it goes away