Skip to content
Commit e879c862 authored by Russell King's avatar Russell King
Browse files

ARM: restart: only perform setup for restart when soft-restarting



We only need to set the system up for a soft-restart if we're going to
be doing a soft-restart.  Provide a new function (soft_restart()) which
does the setup and final call for this, and make platforms use it.
Eliminate the call to setup_restart() from the default handler.

This means that platforms arch_reset() function is no longer called with
the page tables prepared for a soft-restart, and caches will still be
enabled.

Acked-by: default avatarNicolas Pitre <nico@linaro.org>
Acked-by: default avatarWill Deacon <will.deacon@arm.com>
Acked-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
Acked-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
Acked-by: default avatarViresh Kumar <viresh.kumar@st.com>
Acked-by: default avatarKrzysztof Ha■asa <khc@pm.waw.pl>
Acked-by: default avatarPaul Mundt <lethal@linux-sh.org>
Acked-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
Acked-by: default avatarWan ZongShun <mcuos.com@gmail.com>
Acked-by: default avatarEric Miao <eric.y.miao@gmail.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 5aafec15
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment