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

Commit 4baece8f authored by Mohammed Mirza Mandayappurath Manzoor's avatar Mohammed Mirza Mandayappurath Manzoor Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Correct gpu busy cycles calculations for LM on A640



When adjustment cycle counts are higher than gpu busy cycles,
prevent underflow by dropping adjustment cycles.

Change-Id: I4493d52d581d13ef23f34a64a66881cfd98e0c5c
Signed-off-by: default avatarMohammed Mirza Mandayappurath Manzoor <mmandaya@codeaurora.org>
parent 8d80a01a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3745,7 +3745,7 @@ static void adreno_power_stats(struct kgsl_device *device,
		if (gpudev->read_throttling_counters) {
			adj = gpudev->read_throttling_counters(adreno_dev);
			if (adj < 0 && -adj > gpu_busy)
				adj = -gpu_busy;
				adj = 0;

			gpu_busy += adj;
		}