mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
sparc64: Fix UP build.
Can't reference irq_desc[].affinity when !SMP. Reported-by: Alexander Beregalov <a.beregalov@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1091ce6215
commit
6abce7711f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user