mm: move cache_line_size() to <linux/cache.h>
[firefly-linux-kernel-4.4.55.git] / mm / slub.c
index 48fff83a1e9dd822cbf912723c63024723d52df6..38914bc64aca2cd58a4c40e35b1b8ef45b9e55d9 100644 (file)
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -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