lkml.org 
[lkml]   [2020]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] arm64: add grace period when rebooting
Date
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@sang-engineering.com>
---
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
\
 
 \ /
  Last update: 2020-12-19 15:38    [W:0.039 / U:0.628 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site