diff options
author | Will Deacon <will.deacon@arm.com> | 2013-12-12 18:40:21 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-12-12 19:39:01 +0100 |
commit | a5c21dcefa1c3d759457a604b3cfc4af29c8713f (patch) | |
tree | 6832dfcb836f8d5043ba70f17a0ea9c2c428bc4d /firmware/yam | |
parent | Merge tag 'iommu-fixes-for-v3.13-rc4' of git://github.com/awilliam/linux-vfio (diff) | |
download | linux-a5c21dcefa1c3d759457a604b3cfc4af29c8713f.tar.xz linux-a5c21dcefa1c3d759457a604b3cfc4af29c8713f.zip |
dcache: allow word-at-a-time name hashing with big-endian CPUs
When explicitly hashing the end of a string with the word-at-a-time
interface, we have to be careful which end of the word we pick up.
On big-endian CPUs, the upper-bits will contain the data we're after, so
ensure we generate our masks accordingly (and avoid hashing whatever
random junk may have been sitting after the string).
This patch adds a new dcache helper, bytemask_from_count, which creates
a mask appropriate for the CPU endianness.
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'firmware/yam')
0 files changed, 0 insertions, 0 deletions