summaryrefslogtreecommitdiff
path: root/arch/powerpc/mm/mmu_context.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-07-24 07:28:02 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2017-08-23 15:28:38 +0300
commita619e59c075c66e530a88e57b45bb0417e2f4fff (patch)
tree5f725ed75bdccc3bbd715ae8fb400ae0e55062b2 /arch/powerpc/mm/mmu_context.c
parentb426e4bd77fa2f03723cc0bada80b00c664f67da (diff)
downloadlinux-a619e59c075c66e530a88e57b45bb0417e2f4fff.tar.xz
powerpc/mm: Optimize detection of thread local mm's
Instead of comparing the whole CPU mask every time, let's keep a counter of how many bits are set in the mask. Thus testing for a local mm only requires testing if that counter is 1 and the current CPU bit is set in the mask. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/mmu_context.c')
0 files changed, 0 insertions, 0 deletions