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

Commit 73e54a62 authored by Chris Lew's avatar Chris Lew
Browse files

soc: qcom: sleepstate: Tune suspend and resume delays



To optimize the suspend/resume path remove the delay on resume and
reduce latency to 10 ms on suspend paths.

Change-Id: Ie0851fd70c991880e20064cfe663b280ddd63617
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent d5d55ba0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -37,13 +37,12 @@ static int sleepstate_pm_notifier(struct notifier_block *nb,
	switch (event) {
	case PM_SUSPEND_PREPARE:
		gpio_set_value(slst_gpio_base_id + PROC_AWAKE_ID, 0);
		msleep(25); /* To be tuned based on SMP2P latencies */
		msm_ipc_router_set_ws_allowed(true);
		break;

	case PM_POST_SUSPEND:
		gpio_set_value(slst_gpio_base_id + PROC_AWAKE_ID, 1);
		msleep(25); /* To be tuned based on SMP2P latencies */
		usleep_range(10000, 10500); /* Tuned based on SMP2P latencies */
		msm_ipc_router_set_ws_allowed(false);
		break;
	}