powerpc/mm/slice: Simplify and optimise slice context initialisation
authorNicholas Piggin <npiggin@gmail.com>
Wed, 7 Mar 2018 01:37:09 +0000 (11:37 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 13 Mar 2018 12:43:05 +0000 (23:43 +1100)
commit1753dd1830367709144f68f539554dadd7a7ccba
treec77fbae605bafdcc4031b8e54327a02473f1b719
parentab83dc794c9d8870e4844cca9a2945b782b8ee7e
powerpc/mm/slice: Simplify and optimise slice context initialisation

The slice state of an mm gets zeroed then initialised upon exec.
This is the only caller of slice_set_user_psize now, so that can be
removed and instead implement a faster and simplified approach that
requires no locking or checking existing state.

This speeds up vfork+exec+exit performance on POWER8 by 3%.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/slice.h
arch/powerpc/mm/mmu_context_book3s64.c
arch/powerpc/mm/mmu_context_nohash.c
arch/powerpc/mm/slice.c