Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6abce771 authored by David S. Miller's avatar David S. Miller
Browse files

sparc64: Fix UP build.



Can't reference irq_desc[].affinity when !SMP.

Reported-by: default avatarAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1091ce62
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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)