author | Angela Stegmaier <angelabaker@ti.com> | |
Thu, 12 Sep 2019 17:45:11 +0000 (17:45 +0000) | ||
committer | Suman Anna <s-anna@ti.com> | |
Mon, 23 Sep 2019 01:46:54 +0000 (20:46 -0500) | ||
commit | 3b11b13599403f8d93a703b086484627fbf036ba | |
tree | 074bb7ff51b41c3e9793ee9600c1f6a54d558289 | tree | snapshot (tar.xz tar.gz zip) |
parent | 63af67b91f47f4724fdab9f06ef464fc97ed6ce5 | commit | diff |
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>
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 | diff | blob | history | |
kernel/dma/coherent.c | diff | blob | history |