]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/slice: Use const pointers to cached slice masks where possible
authorNicholas Piggin <npiggin@gmail.com>
Wed, 7 Mar 2018 01:37:16 +0000 (11:37 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 13 Mar 2018 12:43:08 +0000 (23:43 +1100)
commitbf314f5e049f9f8dc1ed155da8787822aa0eb143
treedbb92a59ad57224ed688c13fdb0b1b6ceb8b975e
parent07cf88d8fa4bc46b976ef37df8b8b1418a73abe3
powerpc/mm/slice: Use const pointers to cached slice masks where possible

The slice_mask cache was a basic conversion which copied the slice
mask into caller's structures, because that's how the original code
worked. In most cases the pointer can be used directly instead, saving
a copy and an on-stack structure.

On POWER8, this increases vfork+exec+exit performance by 0.3%
and reduces time to mmap+munmap a 64kB page by 2%.

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