aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/intel-iommu.c
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2014-05-20 20:37:51 +0800
committerJoerg Roedel <jroedel@suse.de>2014-07-04 11:34:07 +0200
commite16922af9d291a939679c63dc4a1373088734af4 (patch)
tree705f9fac9c98f47f3432457f12a4b95d4b55d6ad /drivers/iommu/intel-iommu.c
parentiommu/vt-d: Clear the redundant assignment for domain->nid (diff)
downloadlinux-dev-e16922af9d291a939679c63dc4a1373088734af4.tar.xz
linux-dev-e16922af9d291a939679c63dc4a1373088734af4.zip
iommu/vt-d: Use inline function dma_pte_superpage instead of macros
Use inline function dma_pte_superpage() instead of macro for better readability. Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel-iommu.c')
-rw-r--r--drivers/iommu/intel-iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 5fee0f983c03..219c2c51a312 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -892,7 +892,7 @@ static struct dma_pte *dma_pfn_level_pte(struct dmar_domain *domain,
break;
}
- if (pte->val & DMA_PTE_LARGE_PAGE) {
+ if (dma_pte_superpage(pte)) {
*large_page = total;
return pte;
}