[PATCH] RFC: ux500: add PMU resources
Russell King - ARM Linux
linux at arm.linux.org.uk
Mon Feb 7 05:14:46 EST 2011
On Mon, Feb 07, 2011 at 10:08:18AM -0000, Will Deacon wrote:
> > +static irqreturn_t armpmu_bounce_interrupt(int irq, void *dev)
> > +{
> > + irqreturn_t ret = armpmu->handle_irq(irq, dev);
> > +
> > + if (ret == IRQ_NONE) {
> > + int other = !smp_processor_id();
> > + irq_set_affinity(irq, cpumask_of(other));
> > + }
>
> Will this work for edge-triggered IRQs? I don't think it will and I'd
> rather this code lived in some SoC-specific place than in the general
> ARM code. Maybe you could pass an IRQ callback in the platform data?
Especially as it assumes the presence of only one other CPU, which is
not always the case.
More information about the linux-arm-kernel
mailing list