]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/603: Avoid a pile of NOPs when not using SW LRU in TLB exceptions
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 7 May 2021 05:02:02 +0000 (05:02 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 17 May 2021 05:27:16 +0000 (15:27 +1000)
commit4d1bb29c081dbe29190fa275bfa2100d318d0cb3
tree911bbf83bde80232cfff5090ffbd05bcd45f1324
parentc6a428576dbe8481d6c0024d54aa5315b2409e1a
powerpc/603: Avoid a pile of NOPs when not using SW LRU in TLB exceptions

The SW LRU is in an MMU feature section. When not used, that's a
dozen of NOPs to fetch for nothing.

Define an ALT section that does the few remaining operations.

That also avoids a double read on SRR1 in the SW LRU case.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/603725297466959419628ef7964aaf3417fb647d.1620363691.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/head_book3s_32.S