Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154765
b: refs/heads/master
c: a75f7cf
h: refs/heads/master
i:
  154763: 754afc3
v: v3
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jun 29, 2009
1 parent 9b31904 commit e1a829c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 90dcfb5eb2fd427b16135a14f176a6902750b6b4
refs/heads/master: a75f7cf94f01717c5103138319b96752ee2a2be9
6 changes: 3 additions & 3 deletions trunk/drivers/pci/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,12 +764,12 @@ static struct dma_pte *dma_pfn_level_pte(struct dmar_domain *domain,
}

/* clear one page's page table */
static void dma_pte_clear_one(struct dmar_domain *domain, u64 addr)
static void dma_pte_clear_one(struct dmar_domain *domain, unsigned long pfn)
{
struct dma_pte *pte = NULL;

/* get last level pte */
pte = dma_pfn_level_pte(domain, addr >> VTD_PAGE_SHIFT, 1);
pte = dma_pfn_level_pte(domain, pfn, 1);

if (pte) {
dma_clear_pte(pte);
Expand All @@ -792,7 +792,7 @@ static void dma_pte_clear_range(struct dmar_domain *domain, u64 start, u64 end)

/* we don't need lock here, nobody else touches the iova range */
while (npages--) {
dma_pte_clear_one(domain, start);
dma_pte_clear_one(domain, start >> VTD_PAGE_SHIFT);
start += VTD_PAGE_SIZE;
}
}
Expand Down

0 comments on commit e1a829c

Please sign in to comment.