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

Commit 5f9031fa authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Directly clear structure over using memset"

parents fb17c35b 2f348ca9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1459,7 +1459,9 @@ static int _adreno_start(struct adreno_device *adreno_dev)
	}

	/* 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 */
	adreno_perfcounter_restore(adreno_dev);