OSDN Git Service

dma-direct: add support for CMA allocation
authorChristoph Hellwig <hch@lst.de>
Fri, 22 Dec 2017 10:51:44 +0000 (11:51 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 15 Jan 2018 08:35:09 +0000 (09:35 +0100)
commit080321d3b3139b3b3ec0da31a7887eebd50b5979
tree8ee0759cc37280fe67d2042d6f9c0751acc6564f
parent2797596992898034256a6c40168d357ccf0ba0b8
dma-direct: add support for CMA allocation

Try the CMA allocator for coherent allocations if supported.

Roughly modelled after the x86 code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
lib/dma-direct.c