openrisc: remove the sync_single_for_cpu DMA operation
authorChristoph Hellwig <hch@lst.de>
Thu, 19 Jul 2018 13:02:29 +0000 (06:02 -0700)
committerStafford Horne <shorne@gmail.com>
Sat, 21 Jul 2018 04:49:48 +0000 (13:49 +0900)
commit1902cbcc8ba16b5481bd7d3d7759f471a6829842
tree666295d9ff6eacd145dee515b14a08f78cf0973e
parent1e4b044d22517cae7047c99038abb444423243ca
openrisc: remove the sync_single_for_cpu DMA operation

openrisc does all the required cache maintainance at dma map time, and none
at unmap time.  It thus has to implement sync_single_for_device to match
the map cace for buffer reuse, but there is no point in doing another
invalidation in the sync_single_cpu_case, which in terms of cache
maintainance is equivalent to the unmap case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/kernel/dma.c