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

Commit bc46a78f authored by Lingutla Chandrasekhar's avatar Lingutla Chandrasekhar Committed by Gerrit - the friendly Code Review server
Browse files

arm: irq: call irq affinity notifiers on cpu hotplug



Commit '813aa776 ("genirq: Use irq_set_affinity_locked 
to change irq affinity")' has introduced the change in generic
irq, which is needed by PM QoS to get irq affinity notifications,
but it is not addressing 32-bit cpu hotplug path.
 
So update 32-bit cpu hotplug path also to call irq_set_affinity_locked.

Change-Id: Ic5971b8a75a2faaf78d861d9e1e6989132beea79
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
parent 7bcb1bb4
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -150,10 +150,15 @@ static bool migrate_one_irq(struct irq_desc *desc)
	}

	c = irq_data_get_irq_chip(d);
	if (!c->irq_set_affinity)
	if (!c->irq_set_affinity) {
		pr_debug("IRQ%u: unable to set affinity\n", d->irq);
	else if (c->irq_set_affinity(d, affinity, false) == IRQ_SET_MASK_OK && ret)
		cpumask_copy(irq_data_get_affinity_mask(d), affinity);
	} else {
		int r = irq_set_affinity_locked(d, affinity, false);

		if (r)
			pr_warn_ratelimited("IRQ%u: set affinity failed(%d).\n",
					    d->irq, r);
	}

	return ret;
}