projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b27e82
)
iommu/vt-d: Don't use magic number in dma_pte_superpage
author
Joerg Roedel
<jroedel@suse.de>
Fri, 4 Jul 2014 09:19:10 +0000
(11:19 +0200)
committer
Joerg Roedel
<jroedel@suse.de>
Fri, 4 Jul 2014 09:34:18 +0000
(11:34 +0200)
Use the already defined DMA_PTE_LARGE_PAGE for testing
instead of hardcoding the value again.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/intel-iommu.c
b/drivers/iommu/intel-iommu.c
index 9b9f28ea3db25651388ff7766219996354442b42..5d86e932c8dc2ef1d66da6bb06a6137097a6b540 100644
(file)
--- a/
drivers/iommu/intel-iommu.c
+++ b/
drivers/iommu/intel-iommu.c
@@
-304,7
+304,7
@@
static inline bool dma_pte_present(struct dma_pte *pte)
static inline bool dma_pte_superpage(struct dma_pte *pte)
{
- return (pte->val &
(1 << 7)
);
+ return (pte->val &
DMA_PTE_LARGE_PAGE
);
}
static inline int first_pte_in_page(struct dma_pte *pte)