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

Commit ceafc606 authored by Maria Yu's avatar Maria Yu
Browse files

msm: kgsl: Fix parameter undeclared error in trace_kgsl_mem_sync_full_cache



trace_kgsl_mem_sync_full_cache needed to move out of
check_full_flush, since it need necessary info from
the caller.

Change-Id: Ib1f504ae518dd38e572236ce0b23b6080119a2e1
Signed-off-by: default avatarMaria Yu <aiquny@codeaurora.org>
parent 0b51541f
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -2846,10 +2846,8 @@ static inline bool check_full_flush(size_t size, int op)
	bool ret = (kgsl_driver.full_cache_threshold != 0) &&
		(size >= kgsl_driver.full_cache_threshold) &&
		(op == KGSL_GPUMEM_CACHE_FLUSH);
	if (ret) {
		trace_kgsl_mem_sync_full_cache(actual_count, op_size);
	if (ret)
		flush_cache_all();
	}
	return ret;
}
#endif
@@ -2913,8 +2911,10 @@ long kgsl_ioctl_gpumem_sync_cache_bulk(struct kgsl_device_private *dev_priv,
		entries[actual_count++] = entry;

		full_flush  = check_full_flush(op_size, param->op);
		if (full_flush)
		if (full_flush) {
			trace_kgsl_mem_sync_full_cache(actual_count, op_size);
			break;
		}

		last_id = id;
	}
@@ -3002,8 +3002,10 @@ long kgsl_ioctl_gpuobj_sync(struct kgsl_device_private *dev_priv,
			size += (entries[i]->memdesc.size - objs[i].offset);

		full_flush = check_full_flush(size, objs[i].op);
		if (full_flush)
		if (full_flush) {
			trace_kgsl_mem_sync_full_cache(i, size);
			break;
		}

		ptr += sizeof(*objs);
	}