From: Andrey Smirnov <andrew.smirnov@gmail.com>
To: linuxppc-dev@lists.ozlabs.org
Cc: Andrey Smirnov <andrew.smirnov@gmail.com>,
Scott Wood <oss@buserror.net>,
Kumar Gala <galak@kernel.crashing.org>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Paul Mackerras <paulus@samba.org>,
Michael Ellerman <mpe@ellerman.id.au>,
Alessio Igor Bogani <alessio.bogani@elettra.eu>,
Daniel Axtens <dja@axtens.net>,
linux-kernel@vger.kernel.org
Subject: [PATCH 2/3] powerpc: Call chained reset handlers during reset
Date: Mon, 25 Jul 2016 21:25:13 -0700 [thread overview]
Message-ID: <1469507114-5788-2-git-send-email-andrew.smirnov@gmail.com> (raw)
In-Reply-To: <1469507114-5788-1-git-send-email-andrew.smirnov@gmail.com>
Call out to all restart handlers that were added via
register_restart_handler() API when restarting the machine.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
arch/powerpc/kernel/setup-common.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c
index 5cd3283..205d073 100644
--- a/arch/powerpc/kernel/setup-common.c
+++ b/arch/powerpc/kernel/setup-common.c
@@ -145,6 +145,10 @@ void machine_restart(char *cmd)
ppc_md.restart(cmd);
smp_send_stop();
+
+ do_kernel_restart(cmd);
+ mdelay(1000);
+
machine_hang();
}
--
2.5.5
next prev parent reply other threads:[~2016-07-26 4:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-26 4:25 [PATCH 1/3] powerpc: Factor out common code in setup-common.c Andrey Smirnov
2016-07-26 4:25 ` Andrey Smirnov [this message]
2016-07-26 4:25 ` [PATCH 3/3] powerpc: Convert fsl_rstcr_restart to a reset handler Andrey Smirnov
2016-07-26 7:59 ` Scott Wood
2016-07-26 21:22 ` Andrey Smirnov
2016-07-26 21:26 ` Scott Wood
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=1469507114-5788-2-git-send-email-andrew.smirnov@gmail.com \
--to=andrew.smirnov@gmail.com \
--cc=alessio.bogani@elettra.eu \
--cc=benh@kernel.crashing.org \
--cc=dja@axtens.net \
--cc=galak@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=oss@buserror.net \
--cc=paulus@samba.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;
as well as URLs for NNTP newsgroup(s).