]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Only disable HAVE_EFFICIENT_UNALIGNED_ACCESS on POWER7 little endian
authorAnton Blanchard <anton@samba.org>
Sun, 25 Sep 2016 12:35:40 +0000 (22:35 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 4 Oct 2016 05:15:00 +0000 (16:15 +1100)
commit562147e98025f910051d22c10a1309cb7ca44b19
tree9a52793fcb372e3bd7cc1cd1745e9f5b7f042ca1
parent4cff0280e9d842f7884fa974cf414e559966d337
powerpc: Only disable HAVE_EFFICIENT_UNALIGNED_ACCESS on POWER7 little endian

POWER8 handles unaligned accesses in little endian mode, but commit
d23924bfdad1 ("powerpc: Don't set HAVE_EFFICIENT_UNALIGNED_ACCESS on
little endian builds") disabled it for all.

The issue with unaligned little endian accesses is specific to POWER7,
so update the Kconfig check to match. Using the stat() testcase from
commit e4bdfdf5c1f5 ("powerpc: Enable DCACHE_WORD_ACCESS on ppc64le"),
performance improves 15% on POWER8.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Kconfig