linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -mm 0/3] unify dma_get_cache_alignment implementations
@ 2010-07-08  6:57 FUJITA Tomonori
  2010-07-08  6:57 ` FUJITA Tomonori
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: FUJITA Tomonori @ 2010-07-08  6:57 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, fujita.tomonori, linux-arch

Now each architecture has the own dma_get_cache_alignment
implementation.

dma_get_cache_alignment returns the minimum DMA
alignment. Architectures defines 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 can be applied to -mm.

=
 arch/alpha/include/asm/dma-mapping.h         |    1 -
 arch/arm/include/asm/cache.h                 |    2 +-
 arch/arm/include/asm/dma-mapping.h           |    5 -----
 arch/avr32/include/asm/cache.h               |    2 +-
 arch/avr32/include/asm/dma-mapping.h         |    5 -----
 arch/blackfin/include/asm/cache.h            |    2 +-
 arch/blackfin/include/asm/dma-mapping.h      |    1 -
 arch/cris/include/asm/dma-mapping.h          |    6 ------
 arch/frv/include/asm/dma-mapping.h           |    6 ------
 arch/frv/include/asm/mem-layout.h            |    2 +-
 arch/ia64/include/asm/dma-mapping.h          |    2 --
 arch/ia64/kernel/setup.c                     |    6 ------
 arch/m68k/include/asm/cache.h                |    2 +-
 arch/m68k/include/asm/dma-mapping.h          |    5 -----
 arch/microblaze/include/asm/dma-mapping.h    |    5 -----
 arch/microblaze/include/asm/page.h           |    2 +-
 arch/mips/include/asm/dma-mapping.h          |    7 -------
 arch/mips/include/asm/mach-generic/kmalloc.h |    2 +-
 arch/mips/include/asm/mach-ip27/kmalloc.h    |    2 +-
 arch/mips/include/asm/mach-ip32/kmalloc.h    |    4 ++--
 arch/mips/include/asm/mach-tx49xx/kmalloc.h  |    2 +-
 arch/mn10300/include/asm/cache.h             |    2 +-
 arch/mn10300/include/asm/dma-mapping.h       |    6 ------
 arch/parisc/include/asm/cache.h              |    2 ++
 arch/parisc/include/asm/dma-mapping.h        |    6 ------
 arch/powerpc/include/asm/dma-mapping.h       |   15 ---------------
 arch/powerpc/include/asm/page_32.h           |    2 +-
 arch/sh/include/asm/dma-mapping.h            |    9 ---------
 arch/sh/include/asm/page.h                   |    2 +-
 arch/sparc/include/asm/dma-mapping.h         |    9 ---------
 arch/tile/include/asm/dma-mapping.h          |    7 -------
 arch/x86/include/asm/dma-mapping.h           |    7 -------
 arch/xtensa/include/asm/cache.h              |    2 +-
 arch/xtensa/include/asm/dma-mapping.h        |    6 ------
 include/linux/dma-mapping.h                  |    8 ++++++++
 include/linux/slab_def.h                     |    4 +++-
 include/linux/slob_def.h                     |    4 +++-
 include/linux/slub_def.h                     |    8 +++++---
 38 files changed, 36 insertions(+), 134 deletions(-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-07-09  6:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-08  6:57 [PATCH -mm 0/3] unify dma_get_cache_alignment implementations FUJITA Tomonori
2010-07-08  6:57 ` FUJITA Tomonori
2010-07-08  6:57 ` [PATCH -mm 1/3] rename ARCH_KMALLOC_MINALIGN to ARCH_DMA_MINALIGN FUJITA Tomonori
2010-07-08  6:57   ` FUJITA Tomonori
2010-07-08  6:57 ` [PATCH -mm 2/3] unify dma_get_cache_alignment implementations FUJITA Tomonori
2010-07-09  6:14   ` David Miller
2010-07-08  6:57 ` [PATCH -mm 3/3] parisc: set ARCH_DMA_MINALIGN FUJITA Tomonori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).