diff options
author | Yijing Wang <wangyijing@huawei.com> | 2014-05-20 08:37:51 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-07-04 05:34:07 -0400 |
commit | e16922af9d291a939679c63dc4a1373088734af4 (patch) | |
tree | 705f9fac9c98f47f3432457f12a4b95d4b55d6ad /drivers/iommu/intel-iommu.c | |
parent | 8f9d41b430ae03ec63d544c34c31a82507b9e473 (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/intel-iommu.c')
-rw-r--r-- | drivers/iommu/intel-iommu.c | 2 |
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, | |||
892 | break; | 892 | break; |
893 | } | 893 | } |
894 | 894 | ||
895 | if (pte->val & DMA_PTE_LARGE_PAGE) { | 895 | if (dma_pte_superpage(pte)) { |
896 | *large_page = total; | 896 | *large_page = total; |
897 | return pte; | 897 | return pte; |
898 | } | 898 | } |