diff options
author | David Woodhouse <dwmw2@infradead.org> | 2010-05-19 12:02:14 +0100 |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2010-05-19 22:03:13 +0300 |
commit | 4581ced379736fd76432c754f999d26deb83fbb7 (patch) | |
tree | b3c29e714fffb4e7e14b9affe458de316bb4eacd /include/linux/slub_def.h | |
parent | bac49ce42a33f53beb7cf04e9a0600879d6265ca (diff) | |
download | linux-4581ced379736fd76432c754f999d26deb83fbb7.tar.gz linux-4581ced379736fd76432c754f999d26deb83fbb7.tar.bz2 linux-4581ced379736fd76432c754f999d26deb83fbb7.zip |
mm: Move ARCH_SLAB_MINALIGN and ARCH_KMALLOC_MINALIGN to <linux/slub_def.h>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'include/linux/slub_def.h')
-rw-r--r-- | include/linux/slub_def.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h index 0249d4175bac..55695c8d2f8a 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h @@ -116,6 +116,14 @@ struct kmem_cache { #define KMALLOC_SHIFT_LOW ilog2(KMALLOC_MIN_SIZE) +#ifndef ARCH_KMALLOC_MINALIGN +#define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long long) +#endif + +#ifndef ARCH_SLAB_MINALIGN +#define ARCH_SLAB_MINALIGN __alignof__(unsigned long long) +#endif + /* * Maximum kmalloc object size handled by SLUB. Larger object allocations * are passed through to the page allocator. The page allocator "fastpath" |