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

Commit 3ba6a582 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Add a check before requesting GPU keepalive"

parents 986a6c68 41f532e2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1301,6 +1301,9 @@ static int _load_firmware(struct kgsl_device *device, const char *fwfile,
static inline void a6xx_gpu_keepalive(struct adreno_device *adreno_dev,
		bool state)
{
	if (!gmu_core_isenabled(KGSL_DEVICE(adreno_dev)))
		return;

	adreno_write_gmureg(adreno_dev,
			ADRENO_REG_GMU_PWR_COL_KEEPALIVE, state);
}