]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/commit
HACK: dma-mapping: add non-zeroing coherent alloc function
authorAngela Stegmaier <angelabaker@ti.com>
Thu, 12 Sep 2019 17:45:11 +0000 (17:45 +0000)
committerSuman Anna <s-anna@ti.com>
Mon, 23 Sep 2019 01:46:54 +0000 (20:46 -0500)
commit3b11b13599403f8d93a703b086484627fbf036ba
tree074bb7ff51b41c3e9793ee9600c1f6a54d558289
parent63af67b91f47f4724fdab9f06ef464fc97ed6ce5
HACK: dma-mapping: add non-zeroing coherent alloc function

Add a new function, dma_malloc_from_coherent(), which
takes a parameter that specifies if the allocated memory
should be zero-ed or not. Modify dma_alloc_from_coherent
to call dma_malloc_from_coherent with the flag set to
true in order to zero the memory. In this way
dma_alloc_from_coherent behaves the same as before.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
include/linux/dma-mapping.h
kernel/dma/coherent.c