From 3ed8064d8e30312ec19685f6fa74957afdd24622 Mon Sep 17 00:00:00 2001 From: Harshdeep Dhatt Date: Tue, 29 Sep 2015 09:39:04 -0600 Subject: [PATCH] msm: kgsl: Correctly increment the pagetable statistics The pagetable.entries statistics should be incremented by 1 and not the size of the entire mapping. CRs-Fixed: 911514 Change-Id: Ic9acb6a43a76ee0c429c439e60cbd2a6846647db Signed-off-by: Harshdeep Dhatt --- drivers/gpu/msm/kgsl_mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/msm/kgsl_mmu.c b/drivers/gpu/msm/kgsl_mmu.c index 182f4e0c2b3..27bd3e4eaf2 100755 --- a/drivers/gpu/msm/kgsl_mmu.c +++ b/drivers/gpu/msm/kgsl_mmu.c @@ -752,7 +752,7 @@ kgsl_mmu_map(struct kgsl_pagetable *pagetable, KGSL_STATS_ADD(size, &pagetable->stats.mapped, &pagetable->stats.max_mapped); - KGSL_STATS_ADD(size, &pagetable->stats.entries, + KGSL_STATS_ADD(1, &pagetable->stats.entries, &pagetable->stats.max_entries); memdesc->priv |= KGSL_MEMDESC_MAPPED;