projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ca8b9c
)
frv: set ARCH_KMALLOC_MINALIGN
author
FUJITA Tomonori
<
[email protected]
>
Mon, 24 May 2010 21:32:54 +0000
(14:32 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 25 May 2010 15:07:02 +0000
(08:07 -0700)
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.
Signed-off-by: FUJITA Tomonori <
[email protected]
>
Acked-by: David Howells <
[email protected]
>
Acked-by: Pekka Enberg <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/frv/include/asm/cache.h
patch
|
blob
|
history
diff --git
a/arch/frv/include/asm/cache.h
b/arch/frv/include/asm/cache.h
index 2797163b8f4f12cb543495664610de65376b1319..7dc0f0f85b7c56f7dc9622242d9e92fd39930415 100644
(file)
--- a/
arch/frv/include/asm/cache.h
+++ b/
arch/frv/include/asm/cache.h
@@
-17,6
+17,8
@@
#define L1_CACHE_SHIFT (CONFIG_FRV_L1_CACHE_SHIFT)
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
+#define ARCH_KMALLOC_MINALIGN L1_CACHE_BYTES
+
#define __cacheline_aligned __attribute__((aligned(L1_CACHE_BYTES)))
#define ____cacheline_aligned __attribute__((aligned(L1_CACHE_BYTES)))