aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slab.c')
-rw-r--r--mm/slab.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 21b2aef25254..ae440b5ba60e 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -4033,10 +4033,8 @@ static int enable_cpucache(struct kmem_cache *cachep)
4033 * to a larger limit. Thus disabled by default. 4033 * to a larger limit. Thus disabled by default.
4034 */ 4034 */
4035 shared = 0; 4035 shared = 0;
4036#ifdef CONFIG_SMP 4036 if (cachep->buffer_size <= PAGE_SIZE && num_possible_cpus() > 1)
4037 if (cachep->buffer_size <= PAGE_SIZE)
4038 shared = 8; 4037 shared = 8;
4039#endif
4040 4038
4041#if DEBUG 4039#if DEBUG
4042 /* 4040 /*