Skip to content

Commit 66d8e64

Browse files
KunWuChanmpe
authored andcommitted
powerpc/cell: Code cleanup for spufs_mfc_flush
This part was commented from commit a33a7d7 ("[PATCH] spufs: implement mfc access for PPE-side DMA") in about 18 years before. If there are no plans to enable this part code in the future, we can remove this dead code. Signed-off-by: Kunwu Chan <[email protected]> Suggested-by: Christophe Leroy <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
1 parent f3560a2 commit 66d8e64

File tree

1 file changed

+4
-16
lines changed
  • arch/powerpc/platforms/cell/spufs

1 file changed

+4
-16
lines changed

arch/powerpc/platforms/cell/spufs/file.c

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1704,23 +1704,11 @@ static int spufs_mfc_flush(struct file *file, fl_owner_t id)
17041704

17051705
ret = spu_acquire(ctx);
17061706
if (ret)
1707-
goto out;
1708-
#if 0
1709-
/* this currently hangs */
1710-
ret = spufs_wait(ctx->mfc_wq,
1711-
ctx->ops->set_mfc_query(ctx, ctx->tagwait, 2));
1712-
if (ret)
1713-
goto out;
1714-
ret = spufs_wait(ctx->mfc_wq,
1715-
ctx->ops->read_mfc_tagstatus(ctx) == ctx->tagwait);
1716-
if (ret)
1717-
goto out;
1718-
#else
1719-
ret = 0;
1720-
#endif
1707+
return ret;
1708+
17211709
spu_release(ctx);
1722-
out:
1723-
return ret;
1710+
1711+
return 0;
17241712
}
17251713

17261714
static int spufs_mfc_fsync(struct file *file, loff_t start, loff_t end, int datasync)

0 commit comments

Comments
 (0)