]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/32s: Slenderize _tlbia() for powerpc 603/603e
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 3 Feb 2020 16:47:37 +0000 (16:47 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 19 Feb 2020 11:46:11 +0000 (22:46 +1100)
commite1347a020b81fe47c80cd277bfaa61295a9482a4
tree6357346fd4a7dea7e7cf9064a4e63b6b4504cc5e
parenta83836dbc53e96f13fec248ecc201d18e1e3111d
powerpc/32s: Slenderize _tlbia() for powerpc 603/603e

_tlbia() is a function used only on 603/603e core, ie on CPUs which
don't have a hash table.

_tlbia() uses the tlbia macro which implements a loop of 1024 tlbie.

On the 603/603e core, flushing the entire TLB requires no more than
32 tlbie.

Replace tlbia by a loop of 32 tlbie.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/12f4f4f0ff89aeab3b937fc96c84fb35e1b2517e.1580748445.git.christophe.leroy@c-s.fr
arch/powerpc/mm/book3s32/hash_low.S