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

Commit 97f09ae7 authored by Lucille Sylvester's avatar Lucille Sylvester
Browse files

msm: kgsl: Run the idle timer while the GPU is not power collapsed



If the GPU is not in its lowest permitted power collapse state,
make sure there is a timer running to get the GPU to that state.

Change-Id: If57aaaf02087036bc4e24725c0cd3de5bc1f1034
Signed-off-by: default avatarLucille Sylvester <lsylvest@codeaurora.org>
parent 86155e46
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1440,7 +1440,8 @@ int kgsl_pwrctrl_wake(struct kgsl_device *device)
		/* Enable state before turning on irq */
		kgsl_pwrctrl_set_state(device, KGSL_STATE_ACTIVE);
		kgsl_pwrctrl_irq(device, KGSL_PWRFLAGS_ON);

		mod_timer(&device->idle_timer, jiffies +
				device->pwrctrl.interval_timeout);
		pm_qos_update_request(&device->pwrctrl.pm_qos_req_dma,
				device->pwrctrl.pm_qos_latency);
	case KGSL_STATE_ACTIVE:
@@ -1541,9 +1542,6 @@ int kgsl_active_count_get(struct kgsl_device *device)
		wait_for_completion(&device->hwaccess_gate);
		mutex_lock(&device->mutex);

		/* Stop the idle timer */
		del_timer_sync(&device->idle_timer);

		ret = kgsl_pwrctrl_wake(device);
	}
	if (ret == 0)