From 3741b8ab0d23f928a1a721ab09b29c5e3e399e47 Mon Sep 17 00:00:00 2001 From: Gilad Avidov Date: Mon, 14 Dec 2015 09:59:18 -0700 Subject: [PATCH] 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: Gilad Avidov --- drivers/i2c/busses/i2c-msm-v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-msm-v2.c b/drivers/i2c/busses/i2c-msm-v2.c index c075775f679a..a510490d28d6 100644 --- a/drivers/i2c/busses/i2c-msm-v2.c +++ b/drivers/i2c/busses/i2c-msm-v2.c @@ -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); }