diff options
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 | /* |