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

Commit 2ccbde6a authored by Sarthak Garg's avatar Sarthak Garg
Browse files

mmc: sdhci-msm: Affine irq to first set of mask when CONFIG_SMP enabled



For MDM targets with single CPU, CONFIG_SMP won't be enabled so
irq_set_affinity_hint will always return EINVAL leading to unnecessary
WARN_ON.

Use irq_set_affinity_hint only for multiple CPU's or when CONFIG_SMP
enabled.

Change-Id: Id37299759927953e485850fb015a3739fd3daed7
Signed-off-by: default avatarSarthak Garg <sartgarg@codeaurora.org>
parent 5ac088fc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3741,8 +3741,10 @@ static int sdhci_msm_setup_qos(struct sdhci_msm_host *msm_host)
	if (!msm_host->sdhci_qos)
		return 0;

	/* Affine irq to first set of mask */
#ifdef CONFIG_SMP
	/* Affine irq to first set of mask for multiple CPU's*/
	WARN_ON(irq_set_affinity_hint(host->irq, &qcg->mask));
#endif

	/* Setup notifier for case of affinity change/migration */
	msm_host->affinity_notify.notify = sdhci_msm_irq_affinity_notify;