summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2010-03-03 11:47:42 -0700
committerDan Williams <dan.j.williams@intel.com>2010-03-03 11:47:42 -0700
commitb372ec2d900a5b50e47ef9e9624536ad146236be (patch)
tree3c9efbdcac54e7b924057d8b60e223058195d768 /drivers/dma
parent773d9e2d8dbf02cfaf65786cf9100eef02c9fda4 (diff)
downloadblackbird-op-linux-b372ec2d900a5b50e47ef9e9624536ad146236be.tar.gz
blackbird-op-linux-b372ec2d900a5b50e47ef9e9624536ad146236be.zip
ioat3: use ioat2_quiesce()
Replace open coded ioat2_quiesce() call in ioat3_restart_channel Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/ioat/dma_v3.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/dma/ioat/dma_v3.c b/drivers/dma/ioat/dma_v3.c
index f270fa11275b..bff48e8cffc4 100644
--- a/drivers/dma/ioat/dma_v3.c
+++ b/drivers/dma/ioat/dma_v3.c
@@ -341,16 +341,8 @@ static void ioat3_restart_channel(struct ioat2_dma_chan *ioat)
{
struct ioat_chan_common *chan = &ioat->base;
unsigned long phys_complete;
- u32 status;
-
- status = ioat_chansts(chan);
- if (is_ioat_active(status) || is_ioat_idle(status))
- ioat_suspend(chan);
- while (is_ioat_active(status) || is_ioat_idle(status)) {
- status = ioat_chansts(chan);
- cpu_relax();
- }
+ ioat2_quiesce(chan, 0);
if (ioat_cleanup_preamble(chan, &phys_complete))
__cleanup(ioat, phys_complete);
OpenPOWER on IntegriCloud