diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2023-05-24 08:08:21 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-08-02 14:22:19 +0200 |
commit | e43c0a0c3c2870e1ee29519dc249471adf19ab5f (patch) | |
tree | 3e21a8f011129677e957b0f83a93b4e40e1cd738 /arch/powerpc/sysdev/ipic.h | |
parent | powerpc: Add mm_cpumask warning when context switching (diff) | |
download | linux-e43c0a0c3c2870e1ee29519dc249471adf19ab5f.tar.xz linux-e43c0a0c3c2870e1ee29519dc249471adf19ab5f.zip |
powerpc/64s/radix: combine final TLB flush and lazy tlb mm shootdown IPIs
This performs lazy tlb mm shootdown when doing the exit TLB flush when
all mm users go away and user mappings are removed, which avoids having
to do the lazy tlb mm shootdown IPIs on the final mmput when all kernel
references disappear.
powerpc/64s uses a broadcast TLBIE for the exit TLB flush if remote CPUs
need to be invalidated (unless TLBIE is disabled), so this doesn't
necessarily save IPIs but it does avoid a broadcast TLBIE which is quite
expensive.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Squash in preempt_disable/enable() fix from Nick]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230524060821.148015-5-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc/sysdev/ipic.h')
0 files changed, 0 insertions, 0 deletions