arm64: Do not attempt to use init_mm in reset_context()
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 12 Jun 2015 10:24:41 +0000 (11:24 +0100)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:09:06 +0000 (13:09 +0000)
commitf53a164d8204e582c58d85c3355cdbf06aee94a8
tree0dd2284aecddd705493e1a38a9f379d692653b40
parent228ea369520642ae9841bb37c0abaf88fac0ddeb
arm64: Do not attempt to use init_mm in reset_context()

commit 565630d503ef24e44c252bed55571b3a0d68455f upstream.

After secondary CPU boot or hotplug, the active_mm of the idle thread is
&init_mm. The init_mm.pgd (swapper_pg_dir) is only meant for TTBR1_EL1
and must not be set in TTBR0_EL1. Since when active_mm == &init_mm the
TTBR0_EL1 is already set to the reserved value, there is no need to
perform any context reset.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/mm/context.c