]> git.baikalelectronics.ru Git - kernel.git/commit
lib/genalloc.c: Add algorithm, align and zeroed family of DMA allocators
authorFredrik Noring <noring@nocrew.org>
Tue, 25 Jun 2019 15:05:58 +0000 (17:05 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 28 Jun 2019 05:56:50 +0000 (07:56 +0200)
commitae8e416e24102ef7e92e7d21e2b7517bd46ab03a
treeb0efff0a4653f217e8dc1a98231ff88575f27ea3
parentdbda8d0053860bba9d5d2b06d4cadb947ee6ccd6
lib/genalloc.c: Add algorithm, align and zeroed family of DMA allocators

Provide the algorithm option to DMA allocators as well, along with
convenience variants for zeroed and aligned memory. The following
four functions are added:

- gen_pool_dma_alloc_algo()
- gen_pool_dma_alloc_align()
- gen_pool_dma_zalloc_algo()
- gen_pool_dma_zalloc_align()

Signed-off-by: Fredrik Noring <noring@nocrew.org>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/genalloc.h
lib/genalloc.c