1 static int __cpuinit
cpuup_prepare(long cpu
)
3 struct kmem_list3
*l3
= NULL
;
5 list_for_each_entry(cachep
, &cache_chain
, next
) {
6 if (!cachep
->nodelists
[node
]) {
7 l3
= kmalloc_node(memsize
, GFP_KERNEL
, node
);
10 l3
->next_reap
= jiffies
+ REAPTIMEOUT_LIST3
+
11 ((unsigned long)cachep
) % REAPTIMEOUT_LIST3
;
12 cachep
->nodelists
[node
] = l3
;
15 list_for_each_entry(cachep
, &cache_chain
, next
) {
16 struct array_cache
*shared
= NULL
;
19 shared
= alloc_arraycache(node
,
20 cachep
->shared
* cachep
->batchcount
,
22 if (!shared
) return 0;
24 if (use_alien_caches
) {