]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
powerpc/32s: Convert switch_mmu_context() to C
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 3 Jun 2021 08:41:39 +0000 (08:41 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Jun 2021 14:09:08 +0000 (00:09 +1000)
commit863771a28e27dc9eaeaa88cea300370d032f0e0f
treea2b744fc7635c80ff653043735b35dea37c63dff
parent7235bb3593781ed022d0714a73c2c0d8eb8a835f
powerpc/32s: Convert switch_mmu_context() to C

switch_mmu_context() does things that can easily be done in C.

For updating user segments, we have update_user_segments().

As mentionned in commit b5efec00b671 ("powerpc/32s: Move KUEP
locking/unlocking in C"), update_user_segments() has the loop
unrolled which is a significant performance gain.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/05c0875ad8220c03452c3a334946e207c6ca04d6.1622708530.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/book3s/32/kup.h
arch/powerpc/kernel/asm-offsets.c
arch/powerpc/kernel/head_book3s_32.S
arch/powerpc/mm/book3s32/mmu_context.c