mmc: sdhci-msm: Add boot marker
Add boot maker for booting KPI measurement. Change-Id: Iadd97070ad2148f1a33b39e7674b568f58ffaa80 Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
This commit is contained in:
parent
3d8551da60
commit
dcbf0ea3ac
1 changed files with 10 additions and 0 deletions
|
@ -39,6 +39,7 @@
|
||||||
#include <linux/msm-bus.h>
|
#include <linux/msm-bus.h>
|
||||||
#include <linux/pm_runtime.h>
|
#include <linux/pm_runtime.h>
|
||||||
#include <trace/events/mmc.h>
|
#include <trace/events/mmc.h>
|
||||||
|
#include <soc/qcom/boot_stats.h>
|
||||||
|
|
||||||
#include "sdhci-msm.h"
|
#include "sdhci-msm.h"
|
||||||
#include "sdhci-msm-ice.h"
|
#include "sdhci-msm-ice.h"
|
||||||
|
@ -4250,6 +4251,7 @@ static int sdhci_msm_probe(struct platform_device *pdev)
|
||||||
void __iomem *tlmm_mem;
|
void __iomem *tlmm_mem;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
bool force_probe;
|
bool force_probe;
|
||||||
|
char boot_marker[40];
|
||||||
|
|
||||||
pr_debug("%s: Enter %s\n", dev_name(&pdev->dev), __func__);
|
pr_debug("%s: Enter %s\n", dev_name(&pdev->dev), __func__);
|
||||||
msm_host = devm_kzalloc(&pdev->dev, sizeof(struct sdhci_msm_host),
|
msm_host = devm_kzalloc(&pdev->dev, sizeof(struct sdhci_msm_host),
|
||||||
|
@ -4274,6 +4276,10 @@ static int sdhci_msm_probe(struct platform_device *pdev)
|
||||||
goto out_host_free;
|
goto out_host_free;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
snprintf(boot_marker, sizeof(boot_marker),
|
||||||
|
"M - DRIVER %s Init", mmc_hostname(host->mmc));
|
||||||
|
place_marker(boot_marker);
|
||||||
|
|
||||||
pltfm_host = sdhci_priv(host);
|
pltfm_host = sdhci_priv(host);
|
||||||
pltfm_host->priv = msm_host;
|
pltfm_host->priv = msm_host;
|
||||||
msm_host->mmc = host->mmc;
|
msm_host->mmc = host->mmc;
|
||||||
|
@ -4747,6 +4753,10 @@ static int sdhci_msm_probe(struct platform_device *pdev)
|
||||||
if (sdhci_msm_is_bootdevice(&pdev->dev))
|
if (sdhci_msm_is_bootdevice(&pdev->dev))
|
||||||
mmc_flush_detect_work(host->mmc);
|
mmc_flush_detect_work(host->mmc);
|
||||||
|
|
||||||
|
snprintf(boot_marker, sizeof(boot_marker),
|
||||||
|
"M - DRIVER %s Ready", mmc_hostname(host->mmc));
|
||||||
|
place_marker(boot_marker);
|
||||||
|
|
||||||
/* Successful initialization */
|
/* Successful initialization */
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue