[PATCH 2/2] genirq: move mask_cache into struct irq_chip_type
Thomas Gleixner
tglx at linutronix.de
Mon Mar 18 04:56:07 EDT 2013
On Mon, 18 Mar 2013, Gerlando Falauto wrote:
> On 03/15/2013 09:47 PM, Thomas Gleixner wrote:
> You're right... and I appreciate you NOT using such words. :-)
I try hard :)
> Just one question:
>
> > bool mskperct = flags & IRQ_GC_SEPARATE_MASK_REGISTERS;
> > bool mskinit = flags & IRQ_GC_INIT_MASK_CACHE;
> > u32 *shmsk = &gc->shared_mask_cache;
> >
> > if (!mskperct && mskinit)
> > *shmsk = irq_reg_readl(gc->reg_base + ct->regs.mask);
> >
> > for (i = 0; i < gc->num_ct: i++, ct++) {
> > ct->pmask_cache = mskperct ? &ct->mask_cache : shmsk;
>
> What is wrong with using ct[i] instead? I find it a bit more readable.
Either way is fine. I like the pointers more, but that's my personal
preference and I let you chose whatever you want
Thanks,
tglx
More information about the linux-arm-kernel
mailing list