Commit cbd2d9d8 authored by Paul Mundt's avatar Paul Mundt Committed by Paul Mundt

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: default avatarPaul Mundt <lethal@linux-sh.org>
parent f11b71e6
...@@ -151,5 +151,12 @@ typedef struct { unsigned long pgd; } pgd_t; ...@@ -151,5 +151,12 @@ typedef struct { unsigned long pgd; } pgd_t;
#define __HAVE_ARCH_GATE_AREA #define __HAVE_ARCH_GATE_AREA
#endif #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 /* __KERNEL__ */
#endif /* __ASM_SH_PAGE_H */ #endif /* __ASM_SH_PAGE_H */
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