diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2012-01-30 13:37:07 +0200 |
---|---|---|
committer | Lokesh Pathak <lpathak@nvidia.com> | 2012-02-22 22:15:41 -0800 |
commit | 304ea342746da8db6926bb5a84e9d570c7462107 (patch) | |
tree | 4f1cddbad6a7be2c1ccfacf1cbabf262a8ad5970 /drivers/video/tegra/host/nvhost_cdma.h | |
parent | 73dd1497bd101d10a3dd980915a8d3899d8ba5c4 (diff) |
video: tegra: host: Change sync queue to a list
Sync queue is the list of jobs still in flight. As context priorities
requires possibility to insert a job in the middle of the queue, the
structure needs to be changed into a linked list.
Bug 926690
Change-Id: Id257a11f18476c70dd69e36ba44ed2d380c80040
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/83127
Diffstat (limited to 'drivers/video/tegra/host/nvhost_cdma.h')
-rw-r--r-- | drivers/video/tegra/host/nvhost_cdma.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/video/tegra/host/nvhost_cdma.h b/drivers/video/tegra/host/nvhost_cdma.h index a5ef8da29e78..48c8cb2e8a26 100644 --- a/drivers/video/tegra/host/nvhost_cdma.h +++ b/drivers/video/tegra/host/nvhost_cdma.h @@ -28,7 +28,7 @@ #include <linux/nvhost.h> #include <mach/nvmap.h> -#include <linux/kfifo.h> +#include <linux/list.h> #include "nvhost_acm.h" @@ -87,7 +87,6 @@ struct buffer_timeout { enum cdma_event { CDMA_EVENT_NONE, /* not waiting for any event */ CDMA_EVENT_SYNC_QUEUE_EMPTY, /* wait for empty sync queue */ - CDMA_EVENT_SYNC_QUEUE_SPACE, /* wait for space in sync queue */ CDMA_EVENT_PUSH_BUFFER_SPACE /* wait for space in push buffer */ }; @@ -101,7 +100,7 @@ struct nvhost_cdma { unsigned int last_put; /* last value written to DMAPUT */ struct push_buffer push_buffer; /* channel's push buffer */ struct syncpt_buffer syncpt_buffer; /* syncpt incr buffer */ - DECLARE_KFIFO_PTR(sync_queue, struct nvhost_job *); /* job queue */ + struct list_head sync_queue; /* job queue */ struct buffer_timeout timeout; /* channel's timeout state/wq */ bool running; bool torndown; |