OSDN Git Service

powerpc/dma: split the two __dma_alloc_coherent implementations
authorChristoph Hellwig <hch@lst.de>
Sun, 16 Dec 2018 17:19:50 +0000 (18:19 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 20 Dec 2018 11:21:20 +0000 (22:21 +1100)
commit44a0337b322e0ee2b817e334436366d394654d07
tree808d4b979e5705fbebf48ca89d40249a4a96c2f0
parent9c15a87cfc6ce34bc6f2a5cee5e3994c28307942
powerpc/dma: split the two __dma_alloc_coherent implementations

The implemementation for the CONFIG_NOT_COHERENT_CACHE case doesn't share
any code with the one for systems with coherent caches.  Split it off
and merge it with the helpers in dma-noncoherent.c that have no other
callers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/dma-mapping.h
arch/powerpc/kernel/dma.c
arch/powerpc/mm/dma-noncoherent.c
arch/powerpc/platforms/44x/warp.c