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)
commitdffe8449c5dd63ff18b47709de75553586582cd8
tree9a5a1dba390f0b93ce08ce2c8e97dc7e80994cfc
parent63c9d8a4b394f9d8e995292a7c74648760235b44
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