diff options
author | Gilad Avidov <gavidov@codeaurora.org> | 2015-12-14 09:59:18 -0700 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:15:49 -0700 |
commit | 3741b8ab0d23f928a1a721ab09b29c5e3e399e47 (patch) | |
tree | c54d8f03c60f6ab7a1d24051a4abcbd02801eb37 | |
parent | 164661cbb4f29236e41d49353d7109f9bf4b18cd (diff) |
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 <gavidov@codeaurora.org>
-rw-r--r-- | drivers/i2c/busses/i2c-msm-v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |