aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/book3s64/radix_pgtable.c
diff options
context:
space:
mode:
authorHari Bathini <hbathini@linux.ibm.com>2021-07-14 18:17:58 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2021-07-26 20:38:51 +1000
commit8119cefd9a29b71997e62b762932d23499ba4896 (patch)
tree8e26180883e80194f962beec5988ec394f335173 /arch/powerpc/mm/book3s64/radix_pgtable.c
parentMerge branch 'fixes' into next (diff)
downloadlinux-dev-8119cefd9a29b71997e62b762932d23499ba4896.tar.xz
linux-dev-8119cefd9a29b71997e62b762932d23499ba4896.zip
powerpc/kexec: blacklist functions called in real mode for kprobe
As kprobe does not handle events happening in real mode, blacklist the functions that only get called in real mode or in kexec sequence with MMU turned off. Signed-off-by: Hari Bathini <hbathini@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/162626687834.155313.4692863392927831843.stgit@hbathini-workstation.ibm.com
Diffstat (limited to '')
-rw-r--r--arch/powerpc/mm/book3s64/radix_pgtable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/mm/book3s64/radix_pgtable.c b/arch/powerpc/mm/book3s64/radix_pgtable.c
index e50ddf129c15..ae20add7954a 100644
--- a/arch/powerpc/mm/book3s64/radix_pgtable.c
+++ b/arch/powerpc/mm/book3s64/radix_pgtable.c
@@ -679,7 +679,8 @@ void radix__early_init_mmu_secondary(void)
mtspr(SPRN_UAMOR, 0);
}
-void radix__mmu_cleanup_all(void)
+/* Called during kexec sequence with MMU off */
+notrace void radix__mmu_cleanup_all(void)
{
unsigned long lpcr;