diff options
author | Chris Johnson <cwj@nvidia.com> | 2011-07-01 18:47:12 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2012-03-23 17:28:30 -0700 |
commit | 321a60cc25ddb21ee67c36b7fa3593d87c2bb4bc (patch) | |
tree | d876f00a00fee1c323e06924d946aa311174d492 /drivers/video/tegra/host/nvhost_acm.h | |
parent | c6de51e675fe319c759736e26c3143b4faea8633 (diff) |
video: tegra: host: separate the different kinds of ACM timeouts
Let the delay in making sure a module is idle for some amount of
time before powering it down be module specific. This typically
occurs at the end of a INTR_ACTION_SUBMIT_COMPLETLETE.
Some modules have more work (e.g. 3D) to power down, so should
have a longer delay than a module with a lower latency (e.g. 2D).
This change adds the infrastructure a subsequent change will
assign different values.
Make use of a separate #define for the timeout used in waiting
for a system suspend to go idle.
Original-Change-Id: I4d675375e7c2ad841168449bd7f6db3d38d6d6c3
Reviewed-on: http://git-master/r/40044
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Rebase-Id: Rdacbc9caab0bf60064d6c27a7c919b9a759da97a
Diffstat (limited to 'drivers/video/tegra/host/nvhost_acm.h')
-rw-r--r-- | drivers/video/tegra/host/nvhost_acm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/host/nvhost_acm.h b/drivers/video/tegra/host/nvhost_acm.h index 00833a73f808..9736eb64c633 100644 --- a/drivers/video/tegra/host/nvhost_acm.h +++ b/drivers/video/tegra/host/nvhost_acm.h @@ -52,6 +52,7 @@ struct nvhost_module { struct nvhost_module *parent; int powergate_id; int powergate_id2; + int powerdown_delay; }; int nvhost_module_init(struct nvhost_module *mod, const char *name, @@ -71,7 +72,6 @@ static inline bool nvhost_module_powered(struct nvhost_module *mod) static inline void nvhost_module_idle(struct nvhost_module *mod) { nvhost_module_idle_mult(mod, 1); - } #endif |