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

Commit 2155116d authored by Tarun Karra's avatar Tarun Karra
Browse files

msm: kgsl: Remove unused variable global_pool



Remove unused variable global_pool to save memory.

Change-Id: Iddef5541ba2a51cd7001d6d0e6ef82c4a7ae372a
Signed-off-by: default avatarTarun Karra <tkarra@codeaurora.org>
parent f2291a76
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -64,7 +64,6 @@ static void pagetable_remove_sysfs_objects(struct kgsl_pagetable *pagetable);
 * devices so the global pt entry list needs to be driver wide too
 */
static struct kgsl_global_pt_entries {
	struct gen_pool *global_pool;
	unsigned int offset;
	struct kgsl_memdesc *entries[KGSL_MAX_GLOBAL_PT_ENTRIES];
	int count;
@@ -701,7 +700,6 @@ int
kgsl_mmu_get_gpuaddr(struct kgsl_pagetable *pagetable,
			struct kgsl_memdesc *memdesc)
{
	struct gen_pool *pool = NULL;
	int size;
	int page_align = ilog2(PAGE_SIZE);

@@ -728,8 +726,6 @@ kgsl_mmu_get_gpuaddr(struct kgsl_pagetable *pagetable,
	if (kgsl_memdesc_has_guard_page(memdesc))
		size += PAGE_SIZE;

	pool = pagetable->pool;

	if (KGSL_MMU_TYPE_IOMMU == kgsl_mmu_get_mmutype()) {
		/* Allocate aligned virtual addresses for iommu. This allows
		 * more efficient pagetable entries if the physical memory