Re: [PATCH 1/5] smp: Introduce a generic on_each_cpu_mask function

From: Sasha Levin
Date: Sun Sep 25 2011 - 07:38:42 EST


On Sun, 2011-09-25 at 11:54 +0300, Gilad Ben-Yossef wrote:
> +#define on_each_cpu_mask(mask, func, info, wait) \
> + if (cpumask_test_cpu(0, (mask))) { \
> + local_irq_disable(); \
> + func(info); \
(func)(info);
> + local_irq_enable(); \
> + }
> +

Maybe it's worth changing it to be so in case someone passes a func ptr
such as 'ptr[0] + 3'.

--

Sasha.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/