Commit 91f329c7 authored by Philippe Gerum's avatar Philippe Gerum

powerpc/ipipe: ignore inapplicable requests to set IRQ affinity

Generic client code does not necessarily know whether some IRQ can be
given a CPU affinity (i.e. have a irq_set_affinity handler), but may
have to try nevertheless.

In addition, we filter out requests on pipeline-originated virtual
IRQs, which have no chip descriptor either.
parent 737829c7
......@@ -112,7 +112,8 @@ static void do_ipi_demux(int irq, struct pt_regs *regs)
void ipipe_set_irq_affinity(unsigned int irq, cpumask_t cpumask)
{
if (WARN_ON_ONCE(irq_get_chip(irq)->irq_set_affinity == NULL))
if (ipipe_virtual_irq_p(irq) ||
irq_get_chip(irq)->irq_set_affinity == NULL)
return;
if (WARN_ON_ONCE(cpumask_any_and(&cpumask, cpu_online_mask) >= nr_cpu_ids))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment