diff options
author | Subhash Jadavani <subhashj@codeaurora.org> | 2012-05-22 22:59:54 +0530 |
---|---|---|
committer | Subhash Jadavani <subhashj@codeaurora.org> | 2016-05-31 15:25:32 -0700 |
commit | 357f7f515e66f86627ad7f3dfd04263ebfb775f9 (patch) | |
tree | 7f4ccbdbe449e1d9e22aa17ae75695f3efaa9210 /drivers | |
parent | 16f0e48102eb69e5d4858157faa275de551a0b9d (diff) |
mmc: host: remove mmcq performance numbers statistics
mmcq performance numbers are not captured since asynchronous
MMC request support got added in MMC block driver. So printing
out these numbers (which are all zeros) just adds confusion.
This patch removes the printing of mmcq performance numbers
statistics.
CRs-Fixed: 364206
Change-Id: I7213b11c8e9e055894c9902af7e975de3be1c519
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/core/host.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 38fe00671649..44560b15ce57 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -615,33 +615,24 @@ static ssize_t show_perf(struct device *dev, struct device_attribute *attr, char *buf) { struct mmc_host *host = dev_get_drvdata(dev); - int64_t rtime_mmcq, wtime_mmcq, rtime_drv, wtime_drv; - unsigned long rbytes_mmcq, wbytes_mmcq, rbytes_drv, wbytes_drv; + int64_t rtime_drv, wtime_drv; + unsigned long rbytes_drv, wbytes_drv; spin_lock(&host->lock); - rbytes_mmcq = host->perf.rbytes_mmcq; - wbytes_mmcq = host->perf.wbytes_mmcq; rbytes_drv = host->perf.rbytes_drv; wbytes_drv = host->perf.wbytes_drv; - rtime_mmcq = ktime_to_us(host->perf.rtime_mmcq); - wtime_mmcq = ktime_to_us(host->perf.wtime_mmcq); rtime_drv = ktime_to_us(host->perf.rtime_drv); wtime_drv = ktime_to_us(host->perf.wtime_drv); spin_unlock(&host->lock); - return snprintf(buf, PAGE_SIZE, "Write performance at MMCQ Level:" - "%lu bytes in %lld microseconds\n" - "Read performance at MMCQ Level:" - "%lu bytes in %lld microseconds\n" - "Write performance at driver Level:" + return snprintf(buf, PAGE_SIZE, "Write performance at driver Level:" "%lu bytes in %lld microseconds\n" "Read performance at driver Level:" "%lu bytes in %lld microseconds\n", - wbytes_mmcq, wtime_mmcq, rbytes_mmcq, - rtime_mmcq, wbytes_drv, wtime_drv, + wbytes_drv, wtime_drv, rbytes_drv, rtime_drv); } |