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:
parent
9e2d528dc4
commit
55ec973fd9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue