Title: [8725] trunk/arch/blackfin/include/asm/cache.h: Blackfin: set ARCH_KMALLOC_MINALIGN
- Revision
- 8725
- Author
- vapier
- Date
- 2010-05-20 02:00:33 -0400 (Thu, 20 May 2010)
Log Message
Blackfin: set ARCH_KMALLOC_MINALIGN
From: FUJITA Tomonori <[email protected]>
Architectures that handle DMA-non-coherent memory need to set
ARCH_KMALLOC_MINALIGN to make sure that kmalloc'ed buffer is DMA-safe:
the buffer doesn't share a cache with the others.
Modified Paths
Diff
Modified: trunk/arch/blackfin/include/asm/cache.h (8724 => 8725)
--- trunk/arch/blackfin/include/asm/cache.h 2010-05-20 04:26:54 UTC (rev 8724)
+++ trunk/arch/blackfin/include/asm/cache.h 2010-05-20 06:00:33 UTC (rev 8725)
@@ -16,6 +16,8 @@
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
#define SMP_CACHE_BYTES L1_CACHE_BYTES
+#define ARCH_KMALLOC_MINALIGN L1_CACHE_BYTES
+
#ifdef CONFIG_SMP
#define __cacheline_aligned
#else
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits