arm64: Move post_ttbr_update_workaround to C code
authorMark Rutland <mark.rutland@arm.com>
Thu, 12 Apr 2018 11:11:12 +0000 (12:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Apr 2018 06:20:44 +0000 (08:20 +0200)
commit20bcfe09d404df14c2a3b0e3fa3ce56326bd8ced
tree2820b080d6725a9bf5cf7673d59c7991011facfc
parent965924ee9a73ee7509f0f3a261978931e33ef375
arm64: Move post_ttbr_update_workaround to C code

From: Marc Zyngier <marc.zyngier@arm.com>

commit 95e3de3590e3f2358bb13f013911bc1bfa5d3f53 upstream.

We will soon need to invoke a CPU-specific function pointer after changing
page tables, so move post_ttbr_update_workaround out into C code to make
this possible.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com> [v4.9 backport]
Tested-by: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/assembler.h
arch/arm64/mm/context.c
arch/arm64/mm/proc.S