* [PATCH] tx49xx: define ARCH_KMALLOC_MINALIGN
@ 2010-05-17 15:38 Atsushi Nemoto
2010-05-21 13:51 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Atsushi Nemoto @ 2010-05-17 15:38 UTC (permalink / raw)
To: linux-mips; +Cc: ralf
With SLAB, it works without ARCH_KMALLOC_MINALIGN, but with SLOB/SLUB,
ARCH_KMALLOC_MINALIGN is required to ensure alignment of kmalloced
buffer.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
arch/mips/include/asm/mach-tx49xx/kmalloc.h | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/arch/mips/include/asm/mach-tx49xx/kmalloc.h b/arch/mips/include/asm/mach-tx49xx/kmalloc.h
index 913ff19..b74caf6 100644
--- a/arch/mips/include/asm/mach-tx49xx/kmalloc.h
+++ b/arch/mips/include/asm/mach-tx49xx/kmalloc.h
@@ -1,8 +1,6 @@
#ifndef __ASM_MACH_TX49XX_KMALLOC_H
#define __ASM_MACH_TX49XX_KMALLOC_H
-/*
- * All happy, no need to define ARCH_KMALLOC_MINALIGN
- */
+#define ARCH_KMALLOC_MINALIGN L1_CACHE_BYTES
#endif /* __ASM_MACH_TX49XX_KMALLOC_H */
--
1.5.6.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] tx49xx: define ARCH_KMALLOC_MINALIGN
2010-05-17 15:38 [PATCH] tx49xx: define ARCH_KMALLOC_MINALIGN Atsushi Nemoto
@ 2010-05-21 13:51 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2010-05-21 13:51 UTC (permalink / raw)
To: Atsushi Nemoto; +Cc: linux-mips
On Tue, May 18, 2010 at 12:38:05AM +0900, Atsushi Nemoto wrote:
> With SLAB, it works without ARCH_KMALLOC_MINALIGN, but with SLOB/SLUB,
> ARCH_KMALLOC_MINALIGN is required to ensure alignment of kmalloced
> buffer.
Thanks, applied.
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-21 13:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-17 15:38 [PATCH] tx49xx: define ARCH_KMALLOC_MINALIGN Atsushi Nemoto
2010-05-21 13:51 ` Ralf Baechle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.