[PATCH 13/12] mpic: add affinity callback for IPI "chip"

Johannes Berg johannes at sipsolutions.net
Sat Feb 10 02:41:08 EST 2007


On Fri, 2007-02-09 at 08:14 +1100, Benjamin Herrenschmidt wrote:
> 
> > This patch adds a dummy affinity callback for the IPI "chip" to avoid
> > getting a warning ("Cannot set affinity for irq 251") when taking a
> > CPU offline via sysfs or during suspend.
> 
> Wouldn't be a better option to make sure they have IRQF_PERCPU set and
> that we don't do the affinity thing on interrupts with that flag when 
> offlining a CPU ?

Hmm. Yeah, something like that could be possible. Looking at
fixup_irqs() there is a test:

                if (irq_desc[irq].status & IRQ_PER_CPU)
                        continue;

but I'd have to dig what else this means.

johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20070209/ddb4a386/attachment.pgp>


More information about the Linuxppc-dev mailing list