Re: SLUB: simplify re on_each_cpu()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pekka Enberg <penberg@...>
Cc: Robin Holt <holt@...>, Alexey Dobriyan <adobriyan@...>, <cl@...>, <linux-kernel@...>
Date: Thursday, July 17, 2008 - 8:39 am

On Thu, Jul 17, 2008 at 03:26:46PM +0300, Pekka Enberg wrote:

I did a git-checkout of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
which got me commit id 33af79d12e0fa25545d49e86afc67ea8ad5f2f40
and looked at include/linux/smp.h line 123.  It has:

#define on_each_cpu(func,info,wait)             \
        ({                                      \
                local_irq_disable();            \
                func(info);                     \
                local_irq_enable();             \
                0;                              \
        })

This is the !CONFIG_SMP case (line 111).  When I look at
kernel/softirq.c, I notice immediately prior to the comment the #ifdef
CONFIG_SMP.

They appear equivalent.  What am I missing?

Thanks,
Robin
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
SLUB: simplify re on_each_cpu(), Alexey Dobriyan, (Wed Jul 16, 1:29 pm)
Re: SLUB: simplify re on_each_cpu(), Robin Holt, (Thu Jul 17, 7:38 am)
Re: SLUB: simplify re on_each_cpu(), Pekka Enberg, (Thu Jul 17, 8:26 am)
Re: SLUB: simplify re on_each_cpu(), Robin Holt, (Thu Jul 17, 8:39 am)
Re: SLUB: simplify re on_each_cpu(), Vegard Nossum, (Thu Jul 17, 8:55 am)
Re: SLUB: simplify re on_each_cpu(), Pekka Enberg, (Wed Jul 16, 4:58 pm)
Re: SLUB: simplify re on_each_cpu(), Christoph Lameter, (Wed Jul 16, 1:36 pm)