powerpc/64s/radix: occasionally attempt to trim mm_cpumask
authorNicholas Piggin <npiggin@gmail.com>
Thu, 17 Dec 2020 13:47:29 +0000 (23:47 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 14:09:45 +0000 (01:09 +1100)
commit9393544842d6c85ebfc387c43a5059f8171d598f
tree679b31d5a2e5412e5151921811cdd685ba4aec7e
parent780de40601aabeca41bc9aa717a329a77aa85e1a
powerpc/64s/radix: occasionally attempt to trim mm_cpumask

A single-threaded process that is flushing its own address space is
so far the only case where the mm_cpumask is attempted to be trimmed.
This patch expands that to flush in other situations, multi-threaded
processes and external sources. For now it's a relatively simple
occasional trim attempt. The main aim is to add the mechanism,
tweaking and tuning can come with more data.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201217134731.488135-6-npiggin@gmail.com
arch/powerpc/mm/book3s64/radix_tlb.c