diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-06-04 08:46:56 +0200 |
---|---|---|
committer | Paul Mundt <lethal@hera.kernel.org> | 2007-06-08 04:43:48 +0200 |
commit | cbd2d9d8fcd9d2a46d71d0703a76773c20383c66 (patch) | |
tree | da3ae3e0b4f5ae87488c111ae5e3153031fccadd /include/asm-sh/page.h | |
parent | sh: Wire up mempolicy syscalls. (diff) | |
download | linux-cbd2d9d8fcd9d2a46d71d0703a76773c20383c66.tar.xz linux-cbd2d9d8fcd9d2a46d71d0703a76773c20383c66.zip |
sh: Default to 4-byte alignment for SLUB objects.
Slub currently defaults to 8-byte alignment for the kmalloc
and slab minalign values, where 4 will suffice. In the slab
case BYTES_PER_WORD == 4 already, so defining the minalign
values outright doesn't cause any regressions there either.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/page.h')
-rw-r--r-- | include/asm-sh/page.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-sh/page.h b/include/asm-sh/page.h index cb54b25100b1..6bc9bba10105 100644 --- a/include/asm-sh/page.h +++ b/include/asm-sh/page.h @@ -151,5 +151,12 @@ typedef struct { unsigned long pgd; } pgd_t; #define __HAVE_ARCH_GATE_AREA #endif +/* + * Slub defaults to 8-byte alignment, we're only interested in 4. + * Slab defaults to BYTES_PER_WORD, which ends up being the same anyways. + */ +#define ARCH_KMALLOC_MINALIGN 4 +#define ARCH_SLAB_MINALIGN 4 + #endif /* __KERNEL__ */ #endif /* __ASM_SH_PAGE_H */ |