microblaze: Fix kmalloc alignment on non-coherent DMA platforms
authorMichal Simek <monstr@monstr.eu>
Mon, 26 Apr 2010 11:49:01 +0000 (13:49 +0200)
committerMichal Simek <monstr@monstr.eu>
Thu, 6 May 2010 09:21:59 +0000 (11:21 +0200)
commitde925d9d3b64390ef6363e16e9d6a84d7dd7cee1
tree55b5418a6f9338be57590c13784a21ba6730246b
parentc17e1a1cedb723d48d4822cae1af1c010b608b5c
microblaze: Fix kmalloc alignment on non-coherent DMA platforms

Based on PowerPC patche 52142e756e9bf6485d3d53596e8aff2e816a7253

PowerPC description:
On platforms doing non-coherent DMA (4xx, 8xx, ...), it's important
that the kmalloc minimum alignment is set to the cache line size, to
avoid sharing cache lines between different objects, so that DMA to
one of the objects doesn't corrupt the other.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/include/asm/page.h