Commit 737829c7 authored by Philippe Gerum's avatar Philippe Gerum

arm/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 482fd2a8
......@@ -155,7 +155,8 @@ void __ipipe_hook_critical_ipi(struct ipipe_domain *ipd)
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;
cpumask_and(&cpumask, &cpumask, cpu_online_mask);
......
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