mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
SLUB: simplify re on_each_cpu()
on_each_cpu() expands to function call on UP, too. Acked-by: Christoph Lameter <[email protected]> Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Pekka Enberg <[email protected]>
This commit is contained in:
parent
a3cf859321
commit
41ab8592ca
1 changed files with 0 additions and 8 deletions
|
|
@ -1495,15 +1495,7 @@ static void flush_cpu_slab(void *d)
|
|||
|
||||
static void flush_all(struct kmem_cache *s)
|
||||
{
|
||||
#ifdef CONFIG_SMP
|
||||
on_each_cpu(flush_cpu_slab, s, 1);
|
||||
#else
|
||||
unsigned long flags;
|
||||
|
||||
local_irq_save(flags);
|
||||
flush_cpu_slab(s);
|
||||
local_irq_restore(flags);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue