public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* SLUB: simplify re on_each_cpu()
@ 2008-07-16 17:29 Alexey Dobriyan
  2008-07-16 17:36 ` Christoph Lameter
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Alexey Dobriyan @ 2008-07-16 17:29 UTC (permalink / raw)
  To: cl, penberg; +Cc: linux-kernel

on_each_cpu() expands to function call on UP, too.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 mm/slub.c |    8 --------
 1 file changed, 8 deletions(-)

--- a/mm/slub.c
+++ b/mm/slub.c
@@ -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
 }
 
 /*


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-07-17 12:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-16 17:29 SLUB: simplify re on_each_cpu() Alexey Dobriyan
2008-07-16 17:36 ` Christoph Lameter
2008-07-16 20:58 ` Pekka Enberg
2008-07-17 11:38 ` Robin Holt
2008-07-17 12:26   ` Pekka Enberg
2008-07-17 12:39     ` Robin Holt
2008-07-17 12:55       ` Vegard Nossum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox