parisc: Remove lock code to serialize TLB operations in pacache.S
authorJohn David Anglin <dave.anglin@bell.net>
Fri, 12 Apr 2019 23:12:04 +0000 (19:12 -0400)
committerHelge Deller <deller@gmx.de>
Fri, 3 May 2019 21:47:40 +0000 (23:47 +0200)
commit6c63ef80014b60ab13bee7e683d0a95521bb7fdd
tree2b9908266692c3aba234f39350df1e3f1650dd1d
parentdbdf0760990583649bfaca75fd98f76afd5f3905
parisc: Remove lock code to serialize TLB operations in pacache.S

TLB operations only need to be serialized on machines with the Merced
(Stretch) bus. The only machines in this category are L and N class, and
they require a 64-bit PA 2.0 kernel. On these machines, we use local TLB
purges in the tmpalias routines.
We don't need to serialize TLB purges on all other machines. Thus, the
lock/unlock code can be removed when CONFIG_PA20 is not defined.
Further, when CONFIG_PA20 is not defined, alternative patching converts
the TLB purges to local purges when PA 2.0 hardware has been detected.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Tested-By: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/pacache.S