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

Commit 2f348ca9 authored by Carter Cooper's avatar Carter Cooper
Browse files

msm: kgsl: Directly clear structure over using memset



Using memset for 12 bytes is overkill. Clear the values directly
to save precious nanoseconds.

Change-Id: Ic489489befacddbdc7c965f8ff3a4acb4f2d10a7
Signed-off-by: default avatarCarter Cooper <ccooper@codeaurora.org>
parent a820922f
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -1450,7 +1450,9 @@ static int _adreno_start(struct adreno_device *adreno_dev)
	}
	}


	/* Clear the busy_data stats - we're starting over from scratch */
	/* Clear the busy_data stats - we're starting over from scratch */
	memset(&adreno_dev->busy_data, 0, sizeof(adreno_dev->busy_data));
	adreno_dev->busy_data.gpu_busy = 0;
	adreno_dev->busy_data.vbif_ram_cycles = 0;
	adreno_dev->busy_data.vbif_starved_ram = 0;


	/* Restore performance counter registers with saved values */
	/* Restore performance counter registers with saved values */
	adreno_perfcounter_restore(adreno_dev);
	adreno_perfcounter_restore(adreno_dev);