]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
tn8: modem: reduce timeout wakelock to 1s
authorRobert Shih <rshih@nvidia.com>
Thu, 5 Jun 2014 05:25:09 +0000 (13:25 +0800)
committerHarshada Kale <hkale@nvidia.com>
Wed, 11 Jun 2014 09:33:40 +0000 (02:33 -0700)
commit3ee5cc88a7db04b2087937e8ddb27f69ab934544
treee8c5395fd463a580f2184ef135ce45313d1502ff
parent5d7c2dd3b94e7f07fff1f84356a32c7554eb500c
tn8: modem: reduce timeout wakelock to 1s

1. The kernel resume (from LP0 to the time when app tasks start unfreezing) is shorter than 200ms.
When app tasks start running, the RIL/framework/app will hold their wake lock to block suspending.
Furthermore, tegra_usb_modem_post_remote_wakeup() in tegra_usb_modem_power.c will hold
another timeout (1 second) wake lock, which should start later than the wake lock "tegra-ehci.1".
So, 1s timeout for wake lock "tegra-ehci.1" in kernel should be enough.
2. Per our experience, many system resume/suspend (with screen off) caused by remote wake-up is
able to finish in 1.5 seconds, or even shorter. So, 3 seconds timeout could cause more unnecessary power consumption.

bug 1519797

Change-Id: If7b20ea490007e1df0639b4ece8f32fdb3fa757e
Signed-off-by: Robert Shih <rshih@nvidia.com>
Reviewed-on: http://git-master/r/419279
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
drivers/usb/host/ehci-tegra.c