Skip to content
Commit bac7ca7b authored by Andrey Abramov's avatar Andrey Abramov Committed by Michael Ellerman
Browse files

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: default avatarAndrey Abramov <st5pub@yandex.ru>
Reviewed-by: default avatarGeorge Spelvin <lkml@sdf.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/994931554238042@iva8-b333b7f98ab0.qloud-c.yandex.net
parent 2f62870c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment