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

Commit 8d20bb4d authored by Talel Shenhar's avatar Talel Shenhar
Browse files

mmc: sdhci-msm: support IRQ affinity based on pm_qos



This change configures MMC interrupt affinity based
on pm_qos configuration.
This change allows the mmc interrupt to be served on the
same set of CPUs that the mmc thread is running.

Change-Id: I72fb6c717770856134dad1411b9e277b623cefd2
Signed-off-by: default avatarTalel Shenhar <tatias@codeaurora.org>
parent 406795c0
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1792,6 +1792,15 @@ static void pm_qos_update(struct sdhci_host *host,
		latency = MSM_MMC_PM_QOS_INVALID_LATENCY;
	}

	/*
	 * IRQ shall be served on mmc thread affined CPU
	 */
	if (changed_cpu && mngmt->type == PM_QOS_MNGMT_THREAD_TYPE) {
		irq_set_affinity(host->irq, &config->cpu_affinity_mask);
		pr_debug("irq %d affinity was set for cpumask 0x%lx\n",
			host->irq, config->cpu_affinity_mask.bits[0]);
	}

out_ok:
	dev_dbg(dev, "new pm_qos configuration for mngmt->type=%d:\n",
		mngmt->type);