mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] xtensa: enforce slab alignment to maximum register width
@ 2009-03-04 13:56 Johannes Weiner
  2009-03-04 14:32 ` Pekka Enberg
  2009-03-04 21:33 ` [PATCH] nand_bbt.c, kernel 2.6.28.7 Basterash, Tom
  0 siblings, 2 replies; 3+ messages in thread
From: Johannes Weiner @ 2009-03-04 13:56 UTC (permalink / raw)
  To: Chris Zankel; +Cc: linux-kernel

From: Oskar Schirmer <os@emlix.com>

XCHAL_DATA_WIDTH is the maximum register width, slab caches should be
aligned to this.

Theoretical fix as all variants have had an XCHAL_DATA_WIDTH of 4
(wordsize) for now.  But the S6000 variant will raise this to 16.

Signed-off-by: Oskar Schirmer <os@emlix.com>
Signed-off-by: Johannes Weiner <jw@emlix.com>
---
 arch/xtensa/include/asm/processor.h |    2 ++
 1 file changed, 2 insertions(+)

--- a/arch/xtensa/include/asm/processor.h
+++ b/arch/xtensa/include/asm/processor.h
@@ -25,6 +25,8 @@
 # error Linux requires the Xtensa Windowed Registers Option.
 #endif
 
+#define ARCH_SLAB_MINALIGN	XCHAL_DATA_WIDTH
+
 /*
  * User space process size: 1 GB.
  * Windowed call ABI requires caller and callee to be located within the same

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

end of thread, other threads:[~2009-03-04 21:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-04 13:56 [patch] xtensa: enforce slab alignment to maximum register width Johannes Weiner
2009-03-04 14:32 ` Pekka Enberg
2009-03-04 21:33 ` [PATCH] nand_bbt.c, kernel 2.6.28.7 Basterash, Tom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®