forked from mirrors/linux
		
	 356da6d0cd
			
		
	
	
		356da6d0cd
		
	
	
	
	
		
			
			Avoid expensive indirect calls in the fast path DMA mapping operations by directly calling the dma_direct_* ops if we are using the directly mapped DMA operations. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> Tested-by: Jesper Dangaard Brouer <brouer@redhat.com> Tested-by: Tony Luck <tony.luck@intel.com>
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			248 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			248 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0 */
 | |
| #ifndef _ASM_GENERIC_DMA_MAPPING_H
 | |
| #define _ASM_GENERIC_DMA_MAPPING_H
 | |
| 
 | |
| static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
 | |
| {
 | |
| 	return NULL;
 | |
| }
 | |
| 
 | |
| #endif /* _ASM_GENERIC_DMA_MAPPING_H */
 |