Browse Source

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>
Yijing Wang 11 years ago
parent
commit
e16922af9d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/iommu/intel-iommu.c

+ 1 - 1
drivers/iommu/intel-iommu.c

@@ -892,7 +892,7 @@ static struct dma_pte *dma_pfn_level_pte(struct dmar_domain *domain,
 			break;
 			break;
 		}
 		}
 
 
-		if (pte->val & DMA_PTE_LARGE_PAGE) {
+		if (dma_pte_superpage(pte)) {
 			*large_page = total;
 			*large_page = total;
 			return pte;
 			return pte;
 		}
 		}