[RFC PATCH 7/7] irqchip/apple-aic: add SMP support to the Apple AIC driver.
Linus Walleij
linus.walleij at linaro.org
Tue Feb 2 14:15:26 EST 2021
Hi Mohamed,
just a small drive-by comment:
On Wed, Jan 20, 2021 at 2:32 PM Mohamed Mediouni
<mohamed.mediouni at caramail.com> wrote:
> + for_each_cpu (cpu, mask) {
> + smp_mb__before_atomic();
> + atomic_or(1u << irqnr, per_cpu_ptr(&aic_ipi_mask, cpu));
Use:
#include <linux/bits.h>
atomic_or(BIT(irqnr), per_cpu_ptr(&aic_ipi_mask, cpu));
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list