diff options
author | Yijing Wang <wangyijing@huawei.com> | 2014-05-20 20:37:51 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-07-04 11:34:07 +0200 |
commit | e16922af9d291a939679c63dc4a1373088734af4 (patch) | |
tree | 705f9fac9c98f47f3432457f12a4b95d4b55d6ad /drivers/iommu/intel-iommu.c | |
parent | 8f9d41b430ae03ec63d544c34c31a82507b9e473 (diff) | |
download | linux-e16922af9d291a939679c63dc4a1373088734af4.tar.gz linux-e16922af9d291a939679c63dc4a1373088734af4.tar.bz2 linux-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.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, break; } - if (pte->val & DMA_PTE_LARGE_PAGE) { + if (dma_pte_superpage(pte)) { *large_page = total; return pte; } |