Skip to content

Commit

Permalink
powerpc: use linux/unaligned/le_struct.h on LE power7
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnd Bergmann committed May 10, 2021
1 parent 3aec1db commit f12d3ff
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions arch/powerpc/include/asm/unaligned.h

This file was deleted.

0 comments on commit f12d3ff

Please sign in to comment.