From: Wolfram Sang <wsa+renesas@sang-engineering.com>
To: linux-arm-kernel@lists.infradead.org
Cc: linux-renesas-soc@vger.kernel.org,
Wolfram Sang <wsa+renesas@sang-engineering.com>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>,
linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] arm64: add grace period when rebooting
Date: Sat, 19 Dec 2020 15:36:46 +0100 [thread overview]
Message-ID: <20201219143648.56217-2-wsa+renesas@sang-engineering.com> (raw)
In-Reply-To: <20201219143648.56217-1-wsa+renesas@sang-engineering.com>
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
next prev parent reply other threads:[~2020-12-19 14:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-19 14:36 [PATCH 0/2] arm64: small updates to rebooting Wolfram Sang
2020-12-19 14:36 ` Wolfram Sang [this message]
2021-01-12 13:55 ` [PATCH 1/2] arm64: add grace period when rebooting Will Deacon
2021-01-12 14:28 ` Wolfram Sang
2020-12-19 14:36 ` [PATCH 2/2] arm64: proper comment formatting in reboot handler Wolfram Sang
2020-12-22 8:56 ` Geert Uytterhoeven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201219143648.56217-2-wsa+renesas@sang-engineering.com \
--to=wsa+renesas@sang-engineering.com \
--cc=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox