diff options
author | Dan Williams <dan.j.williams@intel.com> | 2010-05-01 18:22:54 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2010-05-01 18:22:54 -0400 |
commit | abb12dfd50c7580d7dcbd581cf6265ba4d01ea7e (patch) | |
tree | d774315dd2620028f1801c8ec0ec31b0e78a536d /drivers/dma/ioat/dma_v2.c | |
parent | 0d0fb0f9c5fddef4a10242fe3337f00f528a3099 (diff) |
ioat: convert to circ_buf
Use the common power-of-2 circular buffer macros.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/ioat/dma_v2.c')
-rw-r--r-- | drivers/dma/ioat/dma_v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/ioat/dma_v2.c b/drivers/dma/ioat/dma_v2.c index b5ae56c211e6..b6699a350989 100644 --- a/drivers/dma/ioat/dma_v2.c +++ b/drivers/dma/ioat/dma_v2.c | |||
@@ -553,7 +553,7 @@ bool reshape_ring(struct ioat2_dma_chan *ioat, int order) | |||
553 | */ | 553 | */ |
554 | struct ioat_chan_common *chan = &ioat->base; | 554 | struct ioat_chan_common *chan = &ioat->base; |
555 | struct dma_chan *c = &chan->common; | 555 | struct dma_chan *c = &chan->common; |
556 | const u16 curr_size = ioat2_ring_mask(ioat) + 1; | 556 | const u16 curr_size = ioat2_ring_size(ioat); |
557 | const u16 active = ioat2_ring_active(ioat); | 557 | const u16 active = ioat2_ring_active(ioat); |
558 | const u16 new_size = 1 << order; | 558 | const u16 new_size = 1 << order; |
559 | struct ioat_ring_ent **ring; | 559 | struct ioat_ring_ent **ring; |