]> err.no Git - linux-2.6/commit
introduce HAVE_EFFICIENT_UNALIGNED_ACCESS Kconfig symbol
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 25 Jul 2008 08:45:33 +0000 (01:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:27 +0000 (10:53 -0700)
commit58340a07c194e0aed7bc58b61ff24330bb2a409f
tree907a53c71b3092e3a3a95c6641d4839e20214efd
parente0ce0da9fefcc723dc006c35a7f91a32750abd40
introduce HAVE_EFFICIENT_UNALIGNED_ACCESS Kconfig symbol

In many cases, especially in networking, it can be beneficial to know at
compile time whether the architecture can do unaligned accesses efficiently.
This patch introduces a new Kconfig symbol

HAVE_EFFICIENT_UNALIGNED_ACCESS

for that purpose and adds it to the powerpc and x86 architectures.  Also add
some documentation about alignment and networking, and especially one intended
use of this symbol.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Ingo Molnar <mingo@elte.hu> [x86 architecture part]
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/unaligned-memory-access.txt
arch/Kconfig
arch/powerpc/Kconfig
arch/x86/Kconfig