diff options
author | Xin Xie <xxie@nvidia.com> | 2011-07-08 20:54:04 -0700 |
---|---|---|
committer | Niket Sirsi <nsirsi@nvidia.com> | 2011-07-21 18:02:05 -0700 |
commit | a64f9b90a8441c80f52ff16af69e523a8a8fc07a (patch) | |
tree | 1766f510febd954e847655ea4f58e0f417147765 | |
parent | 5437e3230679fbc6e342f7e6787e3cc1692e5df6 (diff) |
video: tegra: nvhost: reduce HOST off timeout
Change-Id: I48cdaf6cd8e716a720ec24b56d1ee54d50ade36e
Reviewed-on: http://git-master/r/40676
Reviewed-by: Xin Xie <xxie@nvidia.com>
Tested-by: Xin Xie <xxie@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
-rwxr-xr-x | drivers/video/tegra/host/nvhost_acm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/video/tegra/host/nvhost_acm.c b/drivers/video/tegra/host/nvhost_acm.c index b9f4dc5b4b6a..88b0c0e46751 100755 --- a/drivers/video/tegra/host/nvhost_acm.c +++ b/drivers/video/tegra/host/nvhost_acm.c @@ -30,7 +30,7 @@ #include "dev.h" -#define ACM_TIMEOUT 1*HZ +#define ACM_TIMEOUT_MSEC 25 #define DISABLE_MPE_POWERGATING @@ -87,7 +87,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); @@ -225,7 +226,7 @@ void nvhost_module_suspend(struct nvhost_module *mod, bool system_suspend) debug_not_idle(mod); ret = wait_event_timeout(mod->idle, is_module_idle(mod), - ACM_TIMEOUT + msecs_to_jiffies(500)); + msecs_to_jiffies(ACM_TIMEOUT_MSEC + 500)); if (ret == 0) nvhost_debug_dump(); |