]> Pileus Git - ~andy/linux/commit
ARM: 7927/1: dcache: select DCACHE_WORD_ACCESS for big-endian CPUs
authorWill Deacon <will.deacon@arm.com>
Tue, 17 Dec 2013 18:50:11 +0000 (19:50 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 29 Dec 2013 12:46:50 +0000 (12:46 +0000)
commitcb601185da996656e0bcef46a89a5a2d9619b071
tree536a2d8a53326c3157295921a408b83e2af85a1d
parent5d49750933210457ec2d5e8507823e365b2604fb
ARM: 7927/1: dcache: select DCACHE_WORD_ACCESS for big-endian CPUs

With commit 11ec50caedb5 ("word-at-a-time: provide generic big-endian
zero_bytemask implementation"), the asm-generic word-at-a-time code now
provides a zero_bytemask implementation, allowing us to make use of
DCACHE_WORD_ACCESS on big-endian CPUs, providing our
load_unaligned_zeropad function is endianness-clean.

This patch reworks the load_unaligned_zeropad fixup code to work for
both big- and little-endian CPUs, then removes the !CPU_BIG_ENDIAN check
when selecting DCACHE_WORD_ACCESS.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig
arch/arm/include/asm/word-at-a-time.h