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

Commit 290db627 authored by Deepak Kumar's avatar Deepak Kumar Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Add missing check for "nogmu" module param



Add a missing check for "nogmu" module param in
"gmu_core_gpmu_isenabled". This would allow to disable
GPMU from kernel command line for debugging purpose.

Change-Id: Ia917db413d8b66b8802b620cf0ce2b6b8e6b36b1
Signed-off-by: default avatarDeepak Kumar <dkumar@codeaurora.org>
parent 9c5a7a49
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@ bool gmu_core_isenabled(struct kgsl_device *device)

bool gmu_core_gpmu_isenabled(struct kgsl_device *device)
{
	return test_bit(GMU_GPMU, &device->gmu_core.flags);
	return test_bit(GMU_GPMU, &device->gmu_core.flags) && !nogmu;
}

bool gmu_core_scales_bandwidth(struct kgsl_device *device)