mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
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:
parent
5ac088fc31
commit
2ccbde6a77
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue