diff options
| author | Subhash Jadavani <subhashj@codeaurora.org> | 2012-03-25 11:15:41 +0530 |
|---|---|---|
| committer | Subhash Jadavani <subhashj@codeaurora.org> | 2016-05-31 15:25:30 -0700 |
| commit | 9a092183816a05f802ce3d4d7815b214413d6ad8 (patch) | |
| tree | 2b80be9f063479daa8dae9dcb0030ca981f810b2 /include/linux/mmc | |
| parent | 0f618d04ba4734411cebfdf2f3f2dbcb47326e0c (diff) | |
mmc: core: capture performance numbers only when asked
Currently performance numbers are captured for each SDCC
transfers unconditionally which may add the overhead and
could reduce the SDCC read/write throughput numbers.
This change adds additional control for enabling/disabling the
capturing of performance numbers at runtime. We already have sysfs
entry named "perf" for msm sdcc devices. Currently setting this
entry to 0 clears the performance statistics. But now we are
changing the definition of this entry as mentioned below:
Disable performance capturing and clear the performance statistics:
"echo 0 > /sys/devices/platform/msm_sdcc.<n>/perf"
Enable performance capturing:
"echo 1 > /sys/devices/platform/msm_sdcc.<n>/perf"
CRs-fixed: 345170
Change-Id: I3ab9288fd87cc8a8ada6c0c3d066cac4f68d79b7
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Diffstat (limited to 'include/linux/mmc')
| -rw-r--r-- | include/linux/mmc/host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 30d33363079b..0600ae0d3cb5 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -442,6 +442,7 @@ struct mmc_host { ktime_t wtime_drv; /* Wr time MMC Host */ ktime_t start; } perf; + bool perf_enable; #endif unsigned long private[0] ____cacheline_aligned; |
