Commit 1fd5c747 authored by Paul Mundt's avatar Paul Mundt Committed by Linus Torvalds

[PATCH] sh64: Align slab caches on an 8-byte boundary

The BYTES_PER_WORD assumption doesn't work out on sh64 when we are using a
32-bit ABI.  We want slab caches to be forced to a minimum alignment of
8-bytes, as it was before Anton's change.

This was also already discussed at length with Manfred in this thread:

	http://marc.theaimsgroup.com/?l=linux-kernel&m=110227138116749&w=2Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8f41b4f0
......@@ -313,6 +313,12 @@ struct exception_table_entry
sh64 at the moment). */
#define ARCH_KMALLOC_MINALIGN 8
/*
* We want 8-byte alignment for the slab caches as well, otherwise we have
* the same BYTES_PER_WORD (sizeof(void *)) min align in kmem_cache_create().
*/
#define ARCH_SLAB_MINALIGN 8
/* Returns 0 if exception not found and fixup.unit otherwise. */
extern unsigned long search_exception_table(unsigned long addr);
extern const struct exception_table_entry *search_exception_tables (unsigned long addr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment