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: Sarthak Garg <sartgarg@codeaurora.org>
This commit is contained in:
Sarthak Garg 2021-03-02 13:28:05 +05:30
commit 2ccbde6a77

View file

@ -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;