Commit 66d8e646 authored by Kunwu Chan's avatar Kunwu Chan Committed by Michael Ellerman
Browse files

powerpc/cell: Code cleanup for spufs_mfc_flush



This part was commented from commit a33a7d73
("[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: default avatarKunwu Chan <chentao@kylinos.cn>
Suggested-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240126021258.574916-1-chentao@kylinos.cn
parent f3560a2b
Loading
Loading
Loading
Loading
+4 −16
Original line number Diff line number Diff line
@@ -1704,23 +1704,11 @@ static int spufs_mfc_flush(struct file *file, fl_owner_t id)

	ret = spu_acquire(ctx);
	if (ret)
		goto out;
#if 0
/* this currently hangs */
	ret = spufs_wait(ctx->mfc_wq,
			 ctx->ops->set_mfc_query(ctx, ctx->tagwait, 2));
	if (ret)
		goto out;
	ret = spufs_wait(ctx->mfc_wq,
			 ctx->ops->read_mfc_tagstatus(ctx) == ctx->tagwait);
	if (ret)
		goto out;
#else
	ret = 0;
#endif
	spu_release(ctx);
out:
		return ret;

	spu_release(ctx);

	return 0;
}

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