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

Commit 55831c06 authored by Maulik Shah's avatar Maulik Shah Committed by Gerrit - the friendly Code Review server
Browse files

genirq: Use irq_set_affinity_locked to change irq affinity



Currently PM QoS is not getting notifications if irq affinity
is changed by core isolation with irq_do_set_affinity.

Use irq_set_affinity_locked instead to get notifications when
updating affinity.

Change-Id: Iab745a23637d9353f730ca77ac7e92cf61b1bf67
Signed-off-by: default avatarMaulik Shah <mkshah@codeaurora.org>
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
parent 8e7c0bab
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -131,12 +131,12 @@ static bool migrate_one_irq(struct irq_desc *desc)
		brokeaff = true;
	}
	/*
	 * Do not set the force argument of irq_do_set_affinity() as this
	 * Do not set the force argument of irq_set_affinity_locked() as this
	 * disables the masking of offline CPUs from the supplied affinity
	 * mask and therefore might keep/reassign the irq to the outgoing
	 * CPU.
	 */
	err = irq_do_set_affinity(d, affinity, false);
	err = irq_set_affinity_locked(d, affinity, false);
	if (err) {
		pr_warn_ratelimited("IRQ%u: set affinity failed(%d).\n",
				    d->irq, err);