aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/amd_iommu.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-09-02 11:30:00 -0400
committerJoerg Roedel <joerg.roedel@amd.com>2009-09-03 10:03:47 -0400
commit8c8c143cdc95ebe50fd962917556e25e8912997b (patch)
tree3e9fbb06001296f4a101a94ac5a7bb7bc9458a74 /arch/x86/kernel/amd_iommu.c
parent8bc3e127421bf3b735edbde05135892c12c5f615 (diff)
x86/amd-iommu: Remove last usages of IOMMU_PTE_L0_INDEX
This change allows to remove these old macros later. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/kernel/amd_iommu.c')
-rw-r--r--arch/x86/kernel/amd_iommu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
index 3be2b61fc31f..ebc1c8443926 100644
--- a/arch/x86/kernel/amd_iommu.c
+++ b/arch/x86/kernel/amd_iommu.c
@@ -1402,7 +1402,7 @@ static u64* dma_ops_get_pte(struct dma_ops_domain *dom,
1402 pte = alloc_pte(&dom->domain, address, &pte_page, GFP_ATOMIC); 1402 pte = alloc_pte(&dom->domain, address, &pte_page, GFP_ATOMIC);
1403 aperture->pte_pages[APERTURE_PAGE_INDEX(address)] = pte_page; 1403 aperture->pte_pages[APERTURE_PAGE_INDEX(address)] = pte_page;
1404 } else 1404 } else
1405 pte += IOMMU_PTE_L0_INDEX(address); 1405 pte += PM_LEVEL_INDEX(0, address);
1406 1406
1407 update_domain(&dom->domain); 1407 update_domain(&dom->domain);
1408 1408
@@ -1466,7 +1466,7 @@ static void dma_ops_domain_unmap(struct amd_iommu *iommu,
1466 if (!pte) 1466 if (!pte)
1467 return; 1467 return;
1468 1468
1469 pte += IOMMU_PTE_L0_INDEX(address); 1469 pte += PM_LEVEL_INDEX(0, address);
1470 1470
1471 WARN_ON(!*pte); 1471 WARN_ON(!*pte);
1472 1472