]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitefc1948ef96d0424d82b9deaf8e1c9873df81e11
treec77fbae605bafdcc4031b8e54327a02473f1b719
parent40857828140ace72b236ba1ad7548ac598134407
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