Skip to content

Commit 41ab859

Browse files
Alexey DobriyanPekka Enberg
authored andcommitted
SLUB: simplify re on_each_cpu()
on_each_cpu() expands to function call on UP, too. Acked-by: Christoph Lameter <cl@linux-foundation.org> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
1 parent a3cf859 commit 41ab859

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

mm/slub.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,15 +1495,7 @@ static void flush_cpu_slab(void *d)
14951495

14961496
static void flush_all(struct kmem_cache *s)
14971497
{
1498-
#ifdef CONFIG_SMP
14991498
on_each_cpu(flush_cpu_slab, s, 1);
1500-
#else
1501-
unsigned long flags;
1502-
1503-
local_irq_save(flags);
1504-
flush_cpu_slab(s);
1505-
local_irq_restore(flags);
1506-
#endif
15071499
}
15081500

15091501
/*

0 commit comments

Comments
 (0)