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

Commit 3741b8ab authored by Gilad Avidov's avatar Gilad Avidov Committed by David Keitel
Browse files

i2c-msm-v2: decrease runtime pm time to 250msec



Runtime-pm autosuspend delay is set to 1 second. This
long period is used to avoid thrashing due to long time
it takes for bus-pm voting. The period is reduced to a
quarter to optimize power. This number is tested for
trade-off between power and performance.

Change-Id: I973495e23852f1caefb981b1d8f26da5f09ca7bc
Signed-off-by: default avatarGilad Avidov <gavidov@codeaurora.org>
parent 164661cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2748,7 +2748,7 @@ static int i2c_msm_pm_sys_resume_noirq(struct device *dev)
static void i2c_msm_pm_rt_init(struct device *dev)
{
	pm_runtime_set_suspended(dev);
	pm_runtime_set_autosuspend_delay(dev, MSEC_PER_SEC);
	pm_runtime_set_autosuspend_delay(dev, (MSEC_PER_SEC >> 2));
	pm_runtime_use_autosuspend(dev);
	pm_runtime_enable(dev);
}