Re: [tip:x86/platform] x86/vsmp: Ignore IOAPIC IRQ affinity ifpossible

From: Ido Yariv
Date: Fri Jun 08 2012 - 11:43:08 EST


Hi Ingo,

On Fri, Jun 08, 2012 at 10:52:29AM +0200, Ingo Molnar wrote:
>
> * tip-bot for Ravikiran Thirumalai <kiran.thirumalai@xxxxxxxxx> wrote:
>
> > Commit-ID: 3aabb53ce5849605cee731bbc32f37120b4c4ceb
> > Gitweb: http://git.kernel.org/tip/3aabb53ce5849605cee731bbc32f37120b4c4ceb
> > Author: Ravikiran Thirumalai <kiran.thirumalai@xxxxxxxxx>
> > AuthorDate: Sun, 3 Jun 2012 01:11:35 +0300
> > Committer: Ingo Molnar <mingo@xxxxxxxxxx>
> > CommitDate: Wed, 6 Jun 2012 09:06:20 +0200
> >
> > x86/vsmp: Ignore IOAPIC IRQ affinity if possible
>
> This patch causes the following build failure:
>
> (.init.text+0x10626): undefined reference to `no_irq_affinity'
>
> on UP kernels.

This seems to break when CONFIG_PARAVIRT is set but CONFIG_SMP isn't.
Since there's little point in optimizing IOAPIC routing for UP kernels,
how about the following fix?

Thanks,
Ido.