projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bc3e12
)
x86/amd-iommu: Remove last usages of IOMMU_PTE_L0_INDEX
author
Joerg Roedel
<joerg.roedel@amd.com>
Wed, 2 Sep 2009 15:30:00 +0000
(17:30 +0200)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Thu, 3 Sep 2009 14:03:47 +0000
(16:03 +0200)
This change allows to remove these old macros later.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/amd_iommu.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/amd_iommu.c
b/arch/x86/kernel/amd_iommu.c
index
3be2b61
..
ebc1c84
100644
(file)
--- 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,
pte = alloc_pte(&dom->domain, address, &pte_page, GFP_ATOMIC);
aperture->pte_pages[APERTURE_PAGE_INDEX(address)] = pte_page;
} else
- pte +=
IOMMU_PTE_L0_INDEX(
address);
+ pte +=
PM_LEVEL_INDEX(0,
address);
update_domain(&dom->domain);
@@
-1466,7
+1466,7
@@
static void dma_ops_domain_unmap(struct amd_iommu *iommu,
if (!pte)
return;
- pte +=
IOMMU_PTE_L0_INDEX(
address);
+ pte +=
PM_LEVEL_INDEX(0,
address);
WARN_ON(!*pte);