mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
dma-mapping: add a dma_alloc_need_uncached helper
Check if we need to allocate uncached memory for a device given the allocation flags. Switch over the uncached segment check to this helper to deal with architectures that do not support the dma_cache_sync operation and thus should not returned cacheable memory for DMA_ATTR_NON_CONSISTENT allocations. Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
961729bfc7
commit
4b85faed21
2 changed files with 16 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue