PM / devfreq: bimc-bwmon: Fix rounding error

Fix rounding error that occurs when converting from byte to MB.

Change-Id: Id507e0ae73c42ad5995af0153c3255ad69fde9df
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
This commit is contained in:
Rohit Gupta 2016-09-21 15:12:17 -07:00
parent 9e2d528dc4
commit 55ec973fd9

View file

@ -377,7 +377,7 @@ static unsigned long mon_get_zone_stats(struct bwmon *m)
zone = get_zone(m);
count = readl_relaxed(MON2_ZONE_MAX(m, zone));
count = readl_relaxed(MON2_ZONE_MAX(m, zone)) + 1;
count *= SZ_1M;
dev_dbg(m->dev, "Zone%d Max byte count: %08lx\n", zone, count);