]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s/radix: Improve preempt handling in TLB code
authorNicholas Piggin <npiggin@gmail.com>
Tue, 24 Oct 2017 13:06:53 +0000 (23:06 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 Nov 2017 05:48:10 +0000 (16:48 +1100)
commitd28bb904cb66010cfd8c45ec91aa9d618e5c68f0
tree9a5a1dba390f0b93ce08ce2c8e97dc7e80994cfc
parentc2f49b63c1cfc2d7a91ad5de113d002b88bbac28
powerpc/64s/radix: Improve preempt handling in TLB code

Preempt should be consistently disabled for mm_is_thread_local tests,
so bring the rest of these under preempt_disable().

Preempt does not need to be disabled for the mm->context.id tests,
which allows simplification and removal of gotos.

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