summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/video/tegra/host/nvhost_acm.c5
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);