[PATCH 1/2] arm64: add grace period when rebooting

From: Wolfram Sang
Date: Sat Dec 19 2020 - 09:38:50 EST


I work on a system where I currently need to reboot via watchdog.
Because the watchdog needs a bit of time to fire, add a grace period
like on arm32 to avoid the false positive warning message.

Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
---
arch/arm64/kernel/process.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c
index 6616486a58fe..3c770329364f 100644
--- a/arch/arm64/kernel/process.c
+++ b/arch/arm64/kernel/process.c
@@ -204,6 +204,9 @@ void machine_restart(char *cmd)
else
do_kernel_restart(cmd);

+ /* Give a grace period for failure to restart of 1s */
+ mdelay(1000);
+
/*
* Whoops - the architecture was unable to reboot.
*/
--
2.29.2