]> git.baikalelectronics.ru Git - kernel.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)
commitafc9eac9b377a31afbb3cf10a161b37567a027e2
treea2b744fc7635c80ff653043735b35dea37c63dff
parentd35f186ec7cd4a676f805699e6fab42879d226e2
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 46d348ea9f96 ("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