summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Dorfman <kdorfman@codeaurora.org>2015-06-11 10:05:18 +0300
committerSubhash Jadavani <subhashj@codeaurora.org>2016-05-31 15:26:44 -0700
commite04475b829271bcbfcfb096b2511ad89cf736203 (patch)
treed91e02a9cfc25f2509df37561dbc5cc529965246
parentc85443aa9797c2f2dfc52b9004fa14704ce1a479 (diff)
mmc: sdhci-msm: fix tracepoint for pm debugging
Tracepoint measures time that takes runtime suspend, suspending crypto engine time included into measurement. Change-Id: I6108a9dc5b188e2086aa5e6d2fe87414bb2a2539 Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
-rw-r--r--drivers/mmc/host/sdhci-msm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c
index f0670bf3eea9..4d2ba991285d 100644
--- a/drivers/mmc/host/sdhci-msm.c
+++ b/drivers/mmc/host/sdhci-msm.c
@@ -3395,8 +3395,6 @@ static int sdhci_msm_runtime_suspend(struct device *dev)
if (msm_host->msm_bus_vote.client_handle)
sdhci_msm_bus_cancel_work_and_set_vote(host, 0);
}
- trace_sdhci_msm_runtime_suspend(mmc_hostname(host->mmc), 0,
- ktime_to_us(ktime_sub(ktime_get(), start)));
if (host->is_crypto_en) {
ret = sdhci_msm_ice_suspend(host);
@@ -3404,6 +3402,8 @@ static int sdhci_msm_runtime_suspend(struct device *dev)
pr_err("%s: failed to suspend crypto engine %d\n",
mmc_hostname(host->mmc), ret);
}
+ trace_sdhci_msm_runtime_suspend(mmc_hostname(host->mmc), 0,
+ ktime_to_us(ktime_sub(ktime_get(), start)));
return 0;
}