]> git.baikalelectronics.ru Git - kernel.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)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 12 Jun 2015 14:36:18 +0000 (15:36 +0100)
commit1365c587c8d4f9acfecfabf8e8ad12985c4a7d94
treefbd1c12f5bf48144cfc29c7c7d59aecae42c67b2
parent48d39369e632b5c1d3692036d4f411840c052e7f
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.

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