powerpc/64: optimise LOAD_REG_IMMEDIATE_SYM()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 20 Aug 2019 14:34:14 +0000 (14:34 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Aug 2019 03:03:36 +0000 (13:03 +1000)
commitd7fb5b18a540efaf05da2b980fc11d50ba775677
tree6e88bfda47b1df1f090386a691b3c5f4540b378c
parentba18025fb03306ccdf3557a1e7b8a5b39b474872
powerpc/64: optimise LOAD_REG_IMMEDIATE_SYM()

Optimise LOAD_REG_IMMEDIATE_SYM() using a temporary register to
parallelise operations.

It reduces the path from 5 to 3 instructions.

Suggested-by: Segher Boessenkool <segher@kernel.crashing.org>
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/bad41ed02531bb0382420cbab50a0d7153b71767.1566311636.git.christophe.leroy@c-s.fr
arch/powerpc/include/asm/ppc_asm.h
arch/powerpc/kernel/exceptions-64e.S
arch/powerpc/kernel/head_64.S