]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Jul 2015 12:10:48 +0000 (14:10 +0200)
commit4dd03eff07b66352a307bb3eeb7d3973ec34ecbe
tree613f81109b9097ae670c6c349ae01cfe5765b5e8
parentd308de3b8d7ecb33a7b7731b32182e419707a250
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: Jiri Slaby <jslaby@suse.cz>
arch/arm64/mm/context.c