diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2008-04-28 02:12:22 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 08:58:19 -0700 |
commit | 1b27d05b6e21249d2338be26dfcbe8f8d8ff8a5b (patch) | |
tree | c5413d5f64efed1aa84bfa0ab718f1e2a2f6f9cb /mm/slub.c | |
parent | 19fc3f0acde32636529969570055c7e2a744787c (diff) | |
download | op-kernel-dev-1b27d05b6e21249d2338be26dfcbe8f8d8ff8a5b.zip op-kernel-dev-1b27d05b6e21249d2338be26dfcbe8f8d8ff8a5b.tar.gz |
mm: move cache_line_size() to <linux/cache.h>
Not all architectures define cache_line_size() so as suggested by Andrew move
the private implementations in mm/slab.c and mm/slob.c to <linux/cache.h>.
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Reviewed-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -207,11 +207,6 @@ static inline void ClearSlabDebug(struct page *page) #define __KMALLOC_CACHE 0x20000000 /* objects freed using kfree */ #define __PAGE_ALLOC_FALLBACK 0x10000000 /* Allow fallback to page alloc */ -/* Not all arches define cache_line_size */ -#ifndef cache_line_size -#define cache_line_size() L1_CACHE_BYTES -#endif - static int kmem_size = sizeof(struct kmem_cache); #ifdef CONFIG_SMP |