summaryrefslogtreecommitdiff
path: root/drivers/iommu
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
parent8f9d41b430ae03ec63d544c34c31a82507b9e473 (diff)
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')
-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;
}