commit | d41a4adb1b9208a0ee59e6b4752853c1dd27cc2c | [log] [tgz] |
---|---|---|
author | Jiang Liu <jiang.liu@linux.intel.com> | Fri Jul 11 14:19:34 2014 +0800 |
committer | Joerg Roedel <jroedel@suse.de> | Wed Jul 23 16:04:47 2014 +0200 |
tree | e350f9922d61abc42fafa1da620c02425549d6df | |
parent | 2a41ccee2fdc39df5bdcf5819ed3c0b4a62aea43 [diff] |
iommu/vt-d: Simplify intel_unmap_sg() and kill duplicated code Introduce intel_unmap() to reduce duplicated code in intel_unmap_sg() and intel_unmap_page(). Also let dma_pte_free_pagetable() to call dma_pte_clear_range() directly, so caller only needs to call dma_pte_free_pagetable(). Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>