]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
powerpc/mm/radix: Drop support for CPUs without lockless tlbie
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 2 May 2017 11:00:14 +0000 (21:00 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 3 May 2017 10:45:45 +0000 (20:45 +1000)
commit3c9ac2bcc35453141f82461c71ed109ded152a6a
tree5a0eef534627b27214ab1f1104689fc204edb873
parentd93b0ac01a9ce276ec39644be47001873d3d183c
powerpc/mm/radix: Drop support for CPUs without lockless tlbie

Currently the radix TLB code includes support for CPUs that do *not*
have MMU_FTR_LOCKLESS_TLBIE. On those CPUs we are required to take a
global spinlock before issuing a tlbie.

Radix can only be built for 64-bit Book3s CPUs, and of those, only
POWER4, 970, Cell and PA6T do not have MMU_FTR_LOCKLESS_TLBIE. Although
it's possible to build a kernel with Radix support that can also boot on
those CPUs, we happen to know that in reality none of those CPUs support
the Radix MMU, so the code can never actually run on those CPUs.

So remove the native_tlbie_lock in the Radix TLB code.

Note that there is another lock of the same name in the hash code, which
is unaffected by this patch.

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