diff options
author | Christoph Hellwig <hch@lst.de> | 2020-08-17 16:41:50 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-09-11 09:10:17 +0200 |
commit | abdaf11ac18925ce8cc229e62e35b342d548ece2 (patch) | |
tree | c32d6fd1625f6835947ca94130ca0942ef47ad01 /arch/ia64/mm | |
parent | ef1a85b6ca093abb00fbc38ea55fd9ae08ab05ef (diff) | |
download | linux-stable-abdaf11ac18925ce8cc229e62e35b342d548ece2.tar.gz linux-stable-abdaf11ac18925ce8cc229e62e35b342d548ece2.tar.bz2 linux-stable-abdaf11ac18925ce8cc229e62e35b342d548ece2.zip |
dma-mapping: add (back) arch_dma_mark_clean for ia64
Add back a hook to optimize dcache flushing after reading executable
code using DMA. This gets ia64 out of the business of pretending to
be dma incoherent just for this optimization.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'arch/ia64/mm')
-rw-r--r-- | arch/ia64/mm/init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c index 0b3fb4c7af29..02e5aa08294e 100644 --- a/arch/ia64/mm/init.c +++ b/arch/ia64/mm/init.c @@ -73,8 +73,7 @@ __ia64_sync_icache_dcache (pte_t pte) * DMA can be marked as "clean" so that lazy_mmu_prot_update() doesn't have to * flush them when they get mapped into an executable vm-area. */ -void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, - enum dma_data_direction dir) +void arch_dma_mark_clean(phys_addr_t paddr, size_t size) { unsigned long pfn = PHYS_PFN(paddr); |