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

Commit d5afc844 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 46d2e047 8d20bb4d
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);