powerpc: use linux/unaligned/le_struct.h on LE power7
authorArnd Bergmann <arnd@arndb.de>
Fri, 7 May 2021 22:07:50 +0000 (00:07 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 10 May 2021 15:50:47 +0000 (17:50 +0200)
commitf12d3ff3f41cc92f67cfaf29697685e8834fe4a4
treeabfa0f845a558b68496b20de684207a841b347cf
parent3aec1db05d1ba631311beca4715655591a9e17d5
powerpc: use linux/unaligned/le_struct.h on LE power7

Little-endian POWER7 kernels disable
CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS because that is not supported on
the hardware, but the kernel still uses direct load/store for explicti
get_unaligned()/put_unaligned().

I assume this is a mistake that leads to power7 having to trap and fix
up all these unaligned accesses at a noticeable performance cost.

The fix is completely trivial, just remove the file and use the
generic version that gets it right.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/powerpc/include/asm/unaligned.h [deleted file]