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

Commit 39272ffb authored by Harshdeep Dhatt's avatar Harshdeep Dhatt Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Remove redundant memory barrier



adreno_read() already has a read memory barrier
so this one is not needed.

Change-Id: I38d688c2c2495403a06f4e2b9766a66f611b0c65
Signed-off-by: default avatarHarshdeep Dhatt <hdhatt@codeaurora.org>
parent 40b49a34
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1266,10 +1266,9 @@ adreno_get_rptr(struct adreno_ringbuffer *rb)
	struct adreno_device *adreno_dev = ADRENO_DEVICE(rb->device);
	if (adreno_dev->cur_rb == rb &&
		adreno_preempt_state(adreno_dev,
			ADRENO_DISPATCHER_PREEMPT_CLEAR)) {
			ADRENO_DISPATCHER_PREEMPT_CLEAR))
		adreno_readreg(adreno_dev, ADRENO_REG_CP_RB_RPTR, &(rb->rptr));
		rmb();
	}

	return rb->rptr;
}