Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319571
b: refs/heads/master
c: a164f89
h: refs/heads/master
i:
  319569: 61e0a81
  319567: 368bc4d
v: v3
  • Loading branch information
Glauber Costa authored and Pekka Enberg committed Jul 2, 2012
1 parent 0750e73 commit 0ea2957
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d97d476b1bb11e24268a6bac8214f9bc58716b45
refs/heads/master: a164f89628fa813a2b012ec033625e9e507c29bb
8 changes: 4 additions & 4 deletions trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -1668,9 +1668,6 @@ void __init kmem_cache_init_late(void)
BUG();
mutex_unlock(&cache_chain_mutex);

/* Done! */
g_cpucache_up = FULL;

/*
* Register a cpu startup notifier callback that initializes
* cpu_cache_get for all new cpus
Expand Down Expand Up @@ -1700,6 +1697,9 @@ static int __init cpucache_init(void)
*/
for_each_online_cpu(cpu)
start_cpu_timer(cpu);

/* Done! */
g_cpucache_up = FULL;
return 0;
}
__initcall(cpucache_init);
Expand Down Expand Up @@ -2167,7 +2167,7 @@ static size_t calculate_slab_order(struct kmem_cache *cachep,

static int __init_refok setup_cpu_cache(struct kmem_cache *cachep, gfp_t gfp)
{
if (g_cpucache_up == FULL)
if (g_cpucache_up >= LATE)
return enable_cpucache(cachep, gfp);

if (g_cpucache_up == NONE) {
Expand Down

0 comments on commit 0ea2957

Please sign in to comment.