@@ -87,7 +87,6 @@ static bool migrate_one_irq(struct irq_desc *desc)
{
struct irq_data *d = irq_desc_get_irq_data(desc);
const struct cpumask *affinity = d->affinity;
- struct irq_chip *c;
bool ret = false;
/*
@@ -106,12 +105,8 @@ static bool migrate_one_irq(struct irq_desc *desc)
* selected as the target CPU otherwise
*/
affinity = cpu_online_mask;
- c = irq_data_get_irq_chip(d);
- if (!c->irq_set_affinity)
- pr_debug("IRQ%u: unable to set affinity\n", d->irq);
- else if (c->irq_set_affinity(d, affinity, true) == IRQ_SET_MASK_OK && ret)
- cpumask_copy(d->affinity, affinity);
-
+ ret = (irq_set_affinity_locked(d, affinity, true) == IRQ_SET_MASK_OK)
+ && ret;
return ret;
}