dma-mapping: rename ARCH_KMALLOC_MINALIGN to ARCH_DMA_MINALIGN
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Wed, 11 Aug 2010 01:03:22 +0000 (18:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Aug 2010 15:59:21 +0000 (08:59 -0700)
commita6eb9fe105d5de0053b261148cee56c94b4720ca
tree36e3f324a6a768397ef398674176c0f5f5365bff
parentcd1542c8197fc3c2eb3a8301505d5d9738fab1e4
dma-mapping: rename ARCH_KMALLOC_MINALIGN to ARCH_DMA_MINALIGN

Now each architecture has the own dma_get_cache_alignment implementation.

dma_get_cache_alignment returns the minimum DMA alignment.  Architectures
define it as ARCH_KMALLOC_MINALIGN (it's used to make sure that malloc'ed
buffer is DMA-safe; the buffer doesn't share a cache with the others).  So
we can unify dma_get_cache_alignment implementations.

This patch:

dma_get_cache_alignment() needs to know if an architecture defines
ARCH_KMALLOC_MINALIGN or not (needs to know if architecture has DMA
alignment restriction).  However, slab.h define ARCH_KMALLOC_MINALIGN if
architectures doesn't define it.

Let's rename ARCH_KMALLOC_MINALIGN to ARCH_DMA_MINALIGN.
ARCH_KMALLOC_MINALIGN is used only in the internals of slab/slob/slub
(except for crypto).

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
16 files changed:
arch/arm/include/asm/cache.h
arch/avr32/include/asm/cache.h
arch/blackfin/include/asm/cache.h
arch/frv/include/asm/mem-layout.h
arch/m68k/include/asm/cache.h
arch/microblaze/include/asm/page.h
arch/mips/include/asm/mach-generic/kmalloc.h
arch/mips/include/asm/mach-ip27/kmalloc.h
arch/mips/include/asm/mach-ip32/kmalloc.h
arch/mn10300/include/asm/cache.h
arch/powerpc/include/asm/page_32.h
arch/sh/include/asm/page.h
arch/xtensa/include/asm/cache.h
include/linux/slab_def.h
include/linux/slob_def.h
include/linux/slub_def.h