diff options
author | Hari Bathini <hbathini@linux.ibm.com> | 2021-07-14 15:47:58 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-07-26 13:38:51 +0300 |
commit | 8119cefd9a29b71997e62b762932d23499ba4896 (patch) | |
tree | 8e26180883e80194f962beec5988ec394f335173 /arch/powerpc/mm/book3s64/radix_pgtable.c | |
parent | e1ab9a730b426fadc018f91b7c98412473e542fb (diff) | |
download | linux-8119cefd9a29b71997e62b762932d23499ba4896.tar.xz |
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 'arch/powerpc/mm/book3s64/radix_pgtable.c')
-rw-r--r-- | arch/powerpc/mm/book3s64/radix_pgtable.c | 3 |
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; |