arm64: Do not attempt to use init_mm in reset_context()
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 30 May 2016 05:57:31 +0000 (14:57 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 30 May 2016 06:26:43 +0000 (15:26 +0900)
commitc0b646438837befc90892ae92c50ca81c3b4604d
tree1d90de9c111c2d8d9fc0bcc12934b3778239792b
parent7b80cc619c7e093e7427faa2cbfe76f65dfd61aa
arm64: Do not attempt to use init_mm in reset_context()

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.

Change-Id: If37950d32cbf81f7b29bcd3e8ea2c7c1ad2d3b16
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: <stable@vger.kernel.org>
arch/arm64/mm/context.c