Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90ce2e36 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: kgsl: page_alloc stats are double subtracted



the page_alloc statistics are subtracted twice on free which makes the
statistics quickly go negative (or really really large depending on
your interpetation of the sign bit).

Change-Id: Ic0dedbadbfd118ab496ac9adc942fad79d2bbd3c
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 2ab7606d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -411,8 +411,6 @@ static void kgsl_page_alloc_free(struct kgsl_memdesc *memdesc)
	unsigned int i = 0;
	struct scatterlist *sg;

	atomic_long_sub(memdesc->size, &kgsl_driver.stats.page_alloc);

	kgsl_page_alloc_unmap_kernel(memdesc);
	/* we certainly do not expect the hostptr to still be mapped */
	BUG_ON(memdesc->hostptr);