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:
7e125f7
)
xtensa: set ARCH_KMALLOC_MINALIGN
author
FUJITA Tomonori
<
[email protected]
>
Mon, 24 May 2010 21:31:45 +0000
(14:31 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 25 May 2010 15:06:56 +0000
(08:06 -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]
>
Cc: Chris Zankel <
[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/xtensa/include/asm/cache.h
patch
|
blob
|
history
diff --git
a/arch/xtensa/include/asm/cache.h
b/arch/xtensa/include/asm/cache.h
index f04c9891142fa7a5090d966ac4779b0af419ebca..ed8cd3cbd4993de9619f1e6db12af3c26b166c9b 100644
(file)
--- a/
arch/xtensa/include/asm/cache.h
+++ b/
arch/xtensa/include/asm/cache.h
@@
-29,5
+29,6
@@
# define CACHE_WAY_SIZE ICACHE_WAY_SIZE
#endif
+#define ARCH_KMALLOC_MINALIGN L1_CACHE_BYTES
#endif /* _XTENSA_CACHE_H */