dma-mapping: bypass indirect calls for dma-direct
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>
Esse commit está contido em:
@@ -17,7 +17,7 @@
|
||||
|
||||
static bool disable_dac_quirk __read_mostly;
|
||||
|
||||
const struct dma_map_ops *dma_ops = &dma_direct_ops;
|
||||
const struct dma_map_ops *dma_ops;
|
||||
EXPORT_SYMBOL(dma_ops);
|
||||
|
||||
#ifdef CONFIG_IOMMU_DEBUG
|
||||
|
Referência em uma nova issue
Block a user