From ae1f9efe299b2f24680b04e429c76dec3240b60d Mon Sep 17 00:00:00 2001 From: Simone Willett Date: Wed, 15 Feb 2012 14:22:37 -0800 Subject: Revert "video: tegra: host: use runtime pm for clock management" This reverts commit 961c60fe7213d92793d6072abc16f58721a33fed Change-Id: I8ef0fbaee30e94c78b8df609f729953fee6d1583 Reviewed-on: http://git-master/r/84135 Reviewed-by: Terje Bergstrom Reviewed-by: Mayuresh Kulkarni Tested-by: Lokesh Pathak Reviewed-by: Lokesh Pathak --- include/linux/nvhost.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include/linux') diff --git a/include/linux/nvhost.h b/include/linux/nvhost.h index 9002620a834a..55b75d048791 100644 --- a/include/linux/nvhost.h +++ b/include/linux/nvhost.h @@ -38,6 +38,13 @@ struct nvhost_clock { long default_rate; }; +enum nvhost_device_powerstate_t { + NVHOST_POWER_STATE_DEINIT, + NVHOST_POWER_STATE_RUNNING, + NVHOST_POWER_STATE_CLOCKGATED, + NVHOST_POWER_STATE_POWERGATED +}; + struct nvhost_device { const char *name; /* Device name */ struct device dev; /* Linux device struct */ @@ -67,7 +74,8 @@ struct nvhost_device { int num_clks; /* Number of clocks opened for dev */ struct clk *clk[NVHOST_MODULE_MAX_CLOCKS]; struct mutex lock; /* Power management lock */ - bool powered; /* Current power state */ + int powerstate; /* Current power state */ + int refcount; /* Number of tasks active */ wait_queue_head_t idle_wq; /* Work queue for idle */ struct list_head client_list; /* List of clients and rate requests */ -- cgit v1.2.3