提交 6abce771 编写于 作者: D David S. Miller

sparc64: Fix UP build.

Can't reference irq_desc[].affinity when !SMP.
Reported-by: NAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 1091ce62
......@@ -268,10 +268,8 @@ static int irq_choose_cpu(unsigned int virt_irq, const struct cpumask *affinity)
return cpuid;
}
#else
static int irq_choose_cpu(unsigned int virt_irq, const struct cpumask *affinity)
{
return real_hard_smp_processor_id();
}
#define irq_choose_cpu(virt_irq, affinity) \
real_hard_smp_processor_id()
#endif
static void sun4u_irq_enable(unsigned int virt_irq)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册