提交 0de32796 编写于 作者: P Paul Cercueil 提交者: Christoph Hellwig

cma: decrease CMA_ALIGNMENT lower limit to 2

On an embedded system with a tiny (1 MiB) CMA area for video memory, and
a simple enough video pipeline, we can decrease the CMA_ALIGNMENT by a
factor of 2 to avoid wasting memory, as all the allocations for video
buffers will be of the exact same size (dictated by the size of the
screen).
Signed-off-by: NPaul Cercueil <paul@crapouillou.net>
Signed-off-by: NChristoph Hellwig <hch@lst.de>
上级 c51a9868
......@@ -177,7 +177,7 @@ endchoice
config CMA_ALIGNMENT
int "Maximum PAGE_SIZE order of alignment for contiguous buffers"
range 4 12
range 2 12
default 8
help
DMA mapping framework by default aligns all buffers to the smallest
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册