powerpc: module_[32|64].c: replace swap function with built-in one
authorAndrey Abramov <st5pub@yandex.ru>
Tue, 2 Apr 2019 20:47:22 +0000 (23:47 +0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 11 May 2020 13:15:14 +0000 (23:15 +1000)
commitbac7ca7b985b72873bd4ac2553b13b5af5b1f08a
treee38a430c68c40c29b0103f175d246b3092790401
parent2f62870ca5bc9d305f3c212192320c29e9dbdc54
powerpc: module_[32|64].c: replace swap function with built-in one

Replace relaswap with built-in one, because relaswap
does a simple byte to byte swap.

Since Spectre mitigations have made indirect function calls more
expensive, and the default simple byte copies swap is implemented
without them, an "optimized" custom swap function is now
a waste of time as well as code.

Signed-off-by: Andrey Abramov <st5pub@yandex.ru>
Reviewed-by: George Spelvin <lkml@sdf.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/994931554238042@iva8-b333b7f98ab0.qloud-c.yandex.net
arch/powerpc/kernel/module_32.c
arch/powerpc/kernel/module_64.c