aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slab.c')
-rw-r--r--mm/slab.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 8b7cb802a754..105f188d14a3 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1668,9 +1668,6 @@ void __init kmem_cache_init_late(void)
1668 BUG(); 1668 BUG();
1669 mutex_unlock(&cache_chain_mutex); 1669 mutex_unlock(&cache_chain_mutex);
1670 1670
1671 /* Done! */
1672 g_cpucache_up = FULL;
1673
1674 /* 1671 /*
1675 * Register a cpu startup notifier callback that initializes 1672 * Register a cpu startup notifier callback that initializes
1676 * cpu_cache_get for all new cpus 1673 * cpu_cache_get for all new cpus
@@ -1700,6 +1697,9 @@ static int __init cpucache_init(void)
1700 */ 1697 */
1701 for_each_online_cpu(cpu) 1698 for_each_online_cpu(cpu)
1702 start_cpu_timer(cpu); 1699 start_cpu_timer(cpu);
1700
1701 /* Done! */
1702 g_cpucache_up = FULL;
1703 return 0; 1703 return 0;
1704} 1704}
1705__initcall(cpucache_init); 1705__initcall(cpucache_init);
@@ -2167,7 +2167,7 @@ static size_t calculate_slab_order(struct kmem_cache *cachep,
2167 2167
2168static int __init_refok setup_cpu_cache(struct kmem_cache *cachep, gfp_t gfp) 2168static int __init_refok setup_cpu_cache(struct kmem_cache *cachep, gfp_t gfp)
2169{ 2169{
2170 if (g_cpucache_up == FULL) 2170 if (g_cpucache_up >= LATE)
2171 return enable_cpucache(cachep, gfp); 2171 return enable_cpucache(cachep, gfp);
2172 2172
2173 if (g_cpucache_up == NONE) { 2173 if (g_cpucache_up == NONE) {