]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit07317a0282148a1505409cd053e42be8661b8462
tree808d4b979e5705fbebf48ca89d40249a4a96c2f0
parentdc04b9a74e21a3055e4d05bd739f8ae10b4da3f2
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