summaryrefslogtreecommitdiffstats
path: root/drivers/dma/ioat/dma_v2.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2010-03-03 11:47:43 -0700
committerDan Williams <dan.j.williams@intel.com>2010-03-03 11:47:43 -0700
commit281befa5592b0c5f9a3856b5666c62ac66d3d9ee (patch)
treea0e7ca560fd1f2c43d3352786b0a5317af97ccf7 /drivers/dma/ioat/dma_v2.h
parentb372ec2d900a5b50e47ef9e9624536ad146236be (diff)
downloadop-kernel-dev-281befa5592b0c5f9a3856b5666c62ac66d3d9ee.zip
op-kernel-dev-281befa5592b0c5f9a3856b5666c62ac66d3d9ee.tar.gz
ioat2: kill pending flag
The pending == 2 case no longer exists in the driver so, we can use ioat2_ring_pending() outside the lock to determine if there might be any descriptors in the ring that the hardware has not seen. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/ioat/dma_v2.h')
-rw-r--r--drivers/dma/ioat/dma_v2.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma/ioat/dma_v2.h b/drivers/dma/ioat/dma_v2.h
index 3afad8d..d211335 100644
--- a/drivers/dma/ioat/dma_v2.h
+++ b/drivers/dma/ioat/dma_v2.h
@@ -47,7 +47,6 @@ extern int ioat_ring_alloc_order;
* @head: allocated index
* @issued: hardware notification point
* @tail: cleanup index
- * @pending: lock free indicator for issued != head
* @dmacount: identical to 'head' except for occasionally resetting to zero
* @alloc_order: log2 of the number of allocated descriptors
* @ring: software ring buffer implementation of hardware ring
@@ -61,7 +60,6 @@ struct ioat2_dma_chan {
u16 tail;
u16 dmacount;
u16 alloc_order;
- int pending;
struct ioat_ring_ent **ring;
spinlock_t ring_lock;
};
OpenPOWER on IntegriCloud