diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2011-12-03 19:15:24 +0200 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2011-12-15 11:49:22 +0530 |
commit | fcb2f71be8b30b612a642b8512f7cfe2dea9d5fc (patch) | |
tree | fd36999bc6f93f7d3903fb6167221e3e73af1955 /drivers/video/tegra/host/nvhost_acm.h | |
parent | 7b15aa600d2da8f4b9068b156abaf04124a91269 (diff) |
video: tegra: host: Fix race in suspend/resume
Implement proper mutex locking for nvhost_module_suspend(). At the same
time the ordering of suspend is changed to first suspend clients and
then host1x. This simplifies the power management code, and makes
nvhost_resume() a no-op.
Bug 906607
Change-Id: I60048773944369f73094140fb16682638966c731
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/68084
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
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 06ef09ddf929..ce15c9916cd5 100644 --- a/drivers/video/tegra/host/nvhost_acm.h +++ b/drivers/video/tegra/host/nvhost_acm.h @@ -71,7 +71,7 @@ struct nvhost_module { struct clk *clk[NVHOST_MODULE_MAX_CLOCKS]; struct mutex lock; int powerstate; - atomic_t refcount; + int refcount; wait_queue_head_t idle; struct nvhost_module *parent; const struct nvhost_moduledesc *desc; |