]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Add HAVE_64BIT_ALIGNED_ACCESS
authorJames Hogan <james.hogan@imgtec.com>
Wed, 30 May 2012 10:23:23 +0000 (11:23 +0100)
committerJames Hogan <james.hogan@imgtec.com>
Mon, 28 Jan 2013 16:24:20 +0000 (16:24 +0000)
commit6449e291799baf4532995c5b9dd29dd8d7bb5cfc
tree7acbd259c550a215ca46de1ef295c63ee4d7349f
parente93cd7b5092a41876de447ff71ac205bb9fb30c0
Add HAVE_64BIT_ALIGNED_ACCESS

On 64 bit architectures with no efficient unaligned access, padding and
explicit alignment must be added in various places to prevent unaligned
64bit accesses (such as taskstats and trace ring buffer).

However this also needs to apply to 32 bit architectures with 64 bit
accesses requiring alignment such as metag.

This is solved by adding a new Kconfig symbol HAVE_64BIT_ALIGNED_ACCESS
which defaults to 64BIT && !HAVE_EFFICIENT_UNALIGNED_ACCESS, and can be
explicitly selected by METAG and any other relevant architectures. This
can be used in various places to determine whether 64bit alignment is
required.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Eric Paris <eparis@redhat.com>
Cc: Will Drewry <wad@chromium.org>
arch/Kconfig