intel-iommu: Performance improvement for dma_pte_clear_range()
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 28 Jun 2009 17:52:20 +0000 (18:52 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 29 Jun 2009 12:39:17 +0000 (13:39 +0100)
commit310a5ab93cb4ce29367238f682affd9ac352f4d0
treedc5bb8f208778ebe0aee0054b7af516a36e2b543
parentc5395d5c4a82159889cb650de93b591ea51d8c56
intel-iommu: Performance improvement for dma_pte_clear_range()

It's a bit silly to repeatedly call domain_flush_cache() for each PTE
individually, as we clear it. Instead, batch them up and flush a whole
range at a time. We might as well refrain from recalculating the PTE
address from scratch each time round the loop too.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intel-iommu.c