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
--