diff options
author | Alex Frid <afrid@nvidia.com> | 2010-08-25 21:53:24 -0700 |
---|---|---|
committer | Yu-Huan Hsu <yhsu@nvidia.com> | 2010-09-22 12:20:56 -0700 |
commit | cc8ecb06787b3a5e5456e616a0ccef668fcaa844 (patch) | |
tree | 543c0fd6ab75aef2aa04837f79b0dad1ecc1092f /drivers | |
parent | 2279f9635a4914534e220285f377a292a9ad9d83 (diff) |
[ARM/tegra] nvhost: Reduced ACM timeout.
Reduced ACM timeout to 2ms (from 1sec). This is necessary to detect
host / 3D idle under frequent activity bursts.
Bug 735111
Bug 726052
(cherry picked from commit 1ff7aa46f02f61f070ae41abd8e0a36d4a4f1f3d)
Change-Id: I711286925776c2955f7c43acae0cb8b2c1763e4a
Reviewed-on: http://git-master.nvidia.com/r/7007
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Niranjan Wartikar <nwartikar@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/tegra/host/nvhost_acm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/tegra/host/nvhost_acm.c b/drivers/video/tegra/host/nvhost_acm.c index 4628306c02a8..adb7ae2c6da3 100644 --- a/drivers/video/tegra/host/nvhost_acm.c +++ b/drivers/video/tegra/host/nvhost_acm.c @@ -26,7 +26,7 @@ #include <linux/err.h> #include <linux/device.h> -#define ACM_TIMEOUT 1*HZ +#define ACM_TIMEOUT_MSEC 2 void nvhost_module_busy(struct nvhost_module *mod) { @@ -70,7 +70,8 @@ void nvhost_module_idle_mult(struct nvhost_module *mod, int refs) mutex_lock(&mod->lock); if (atomic_sub_return(refs, &mod->refcount) == 0) { BUG_ON(!mod->powered); - schedule_delayed_work(&mod->powerdown, ACM_TIMEOUT); + schedule_delayed_work( + &mod->powerdown, msecs_to_jiffies(ACM_TIMEOUT_MSEC)); kick = true; } mutex_unlock(&mod->lock); |