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

Commit eff9fa84 authored by Deepak Kumar's avatar Deepak Kumar Committed by Indira Biruduraju
Browse files

msm: kgsl: Add gpu_frequency trace during SLUMBER entry and exit



Add gpu_frequency trace during SLUMBER entry and exit. This is
needed to track GPU frequency across idle and active state
transitions.

Change-Id: Ib782805a1776e4c0fb879fc34dc2e1cd11cf6791
Signed-off-by: default avatarDeepak Kumar <dkumar@codeaurora.org>
Signed-off-by: default avatarIndira Biruduraju <ibirudur@codeaurora.org>
parent c67bc4a3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1763,6 +1763,8 @@ static int _wake(struct kgsl_device *device)
		kgsl_pwrctrl_axi(device, KGSL_PWRFLAGS_ON);
		kgsl_pwrscale_wake(device);
		kgsl_pwrctrl_irq(device, KGSL_PWRFLAGS_ON);
		trace_gpu_frequency(
			pwr->pwrlevels[pwr->active_pwrlevel].gpu_freq/1000, 0);
		/* fall through */
	case KGSL_STATE_NAP:
		/* Turn on the core clocks */
@@ -1906,6 +1908,7 @@ _slumber(struct kgsl_device *device)
		kgsl_pwrctrl_clk_set_options(device, false);
		kgsl_pwrctrl_disable(device);
		kgsl_pwrscale_sleep(device);
		trace_gpu_frequency(0, 0);
		kgsl_pwrctrl_set_state(device, KGSL_STATE_SLUMBER);
		break;
	case KGSL_STATE_SUSPEND:
@@ -1915,6 +1918,7 @@ _slumber(struct kgsl_device *device)
		break;
	case KGSL_STATE_AWARE:
		kgsl_pwrctrl_disable(device);
		trace_gpu_frequency(0, 0);
		kgsl_pwrctrl_set_state(device, KGSL_STATE_SLUMBER);
		break;
	default: