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

Commit 3588b2b2 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: Avoid unnecessary AHB access"

parents 7a3a3d26 56c9cdba
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1012,7 +1012,9 @@ static int timed_poll_check(struct kgsl_device *device,
		kgsl_gmu_regread(device, offset, &value);
		if ((value & mask) == expected_ret)
			return 0;
		cpu_relax();
		/* Wait 100us to reduce unnecessary AHB bus traffic */
		udelay(100);
		cond_resched();
	} while (!time_after(jiffies, t));

	return -EINVAL;
+3 −1
Original line number Diff line number Diff line
@@ -1536,7 +1536,9 @@ void gmu_stop(struct kgsl_device *device)
			idle = true;
			break;
		}
		cpu_relax();
		/* Wait 100us to reduce unnecessary AHB bus traffic */
		udelay(100);
		cond_resched();
	}

	gpudev->rpmh_gpu_pwrctrl(adreno_dev, GMU_NOTIFY_SLUMBER, 0, 0);