Skip to content

Commit

Permalink
iommu/vt-d: Remove the useless dma_pte_addr
Browse files Browse the repository at this point in the history
Signed-off-by: Yijing Wang <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
  • Loading branch information
YijingWang authored and joergroedel committed Jul 4, 2014
1 parent c3c75eb commit effad4b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/iommu/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,13 +849,11 @@ static struct dma_pte *pfn_to_dma_pte(struct dmar_domain *domain,

domain_flush_cache(domain, tmp_page, VTD_PAGE_SIZE);
pteval = ((uint64_t)virt_to_dma_pfn(tmp_page) << VTD_PAGE_SHIFT) | DMA_PTE_READ | DMA_PTE_WRITE;
if (cmpxchg64(&pte->val, 0ULL, pteval)) {
if (cmpxchg64(&pte->val, 0ULL, pteval))
/* Someone else set it while we were thinking; use theirs. */
free_pgtable_page(tmp_page);
} else {
dma_pte_addr(pte);
else
domain_flush_cache(domain, pte, sizeof(*pte));
}
}
if (level == 1)
break;
Expand Down

0 comments on commit effad4b

Please sign in to comment.