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>
Showing
- arch/arm/include/asm/cache.h 1 addition, 1 deletionarch/arm/include/asm/cache.h
- arch/avr32/include/asm/cache.h 1 addition, 1 deletionarch/avr32/include/asm/cache.h
- arch/blackfin/include/asm/cache.h 1 addition, 1 deletionarch/blackfin/include/asm/cache.h
- arch/frv/include/asm/mem-layout.h 1 addition, 1 deletionarch/frv/include/asm/mem-layout.h
- arch/m68k/include/asm/cache.h 1 addition, 1 deletionarch/m68k/include/asm/cache.h
- arch/microblaze/include/asm/page.h 1 addition, 1 deletionarch/microblaze/include/asm/page.h
- arch/mips/include/asm/mach-generic/kmalloc.h 1 addition, 1 deletionarch/mips/include/asm/mach-generic/kmalloc.h
- arch/mips/include/asm/mach-ip27/kmalloc.h 1 addition, 1 deletionarch/mips/include/asm/mach-ip27/kmalloc.h
- arch/mips/include/asm/mach-ip32/kmalloc.h 2 additions, 2 deletionsarch/mips/include/asm/mach-ip32/kmalloc.h
- arch/mn10300/include/asm/cache.h 1 addition, 1 deletionarch/mn10300/include/asm/cache.h
- arch/powerpc/include/asm/page_32.h 1 addition, 1 deletionarch/powerpc/include/asm/page_32.h
- arch/sh/include/asm/page.h 1 addition, 1 deletionarch/sh/include/asm/page.h
- arch/xtensa/include/asm/cache.h 1 addition, 1 deletionarch/xtensa/include/asm/cache.h
- include/linux/slab_def.h 3 additions, 1 deletioninclude/linux/slab_def.h
- include/linux/slob_def.h 3 additions, 1 deletioninclude/linux/slob_def.h
- include/linux/slub_def.h 5 additions, 3 deletionsinclude/linux/slub_def.h
Loading
Please register or sign in to comment