mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 15:18:15 +00:00
iommu/vt-d: Don't use magic number in dma_pte_superpage
Use the already defined DMA_PTE_LARGE_PAGE for testing instead of hardcoding the value again. Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
parent
9b27e82d20
commit
c3c75eb7fa
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ static inline bool dma_pte_present(struct dma_pte *pte)
|
||||||
|
|
||||||
static inline bool dma_pte_superpage(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)
|
static inline int first_pte_in_page(struct dma_pte *pte)
|
||||||
|
|
Loading…
Add table
Reference in a new issue