powerpc/32: Optimise __csum_partial()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 24 May 2018 11:22:27 +0000 (11:22 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 14:39:19 +0000 (00:39 +1000)
commit373e098e1e788d7b89ec0f31765a6c08e2ea0f7c
tree4c4b689c05300a7fdf7e1494c1f72c17afa9e62f
parent1128bb7813a896bd608fb622eee3c26aaf33b473
powerpc/32: Optimise __csum_partial()

Improve __csum_partial by interleaving loads and adds.

On a 8xx, it brings neither improvement nor degradation.
On a 83xx, it brings a 25% improvement.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/lib/checksum_32.S