提交 eb63657e 编写于 作者: J Jeremy Fitzhardinge 提交者: Vegard Nossum

x86: unify pte_hidden

Unify and demacro pte_hidden.
Signed-off-by: NJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>

[rebased for mainline inclusion]
Signed-off-by: NVegard Nossum <vegard.nossum@gmail.com>
上级 9d31c506
...@@ -317,13 +317,9 @@ static inline int pte_present(pte_t a) ...@@ -317,13 +317,9 @@ static inline int pte_present(pte_t a)
return pte_flags(a) & (_PAGE_PRESENT | _PAGE_PROTNONE); return pte_flags(a) & (_PAGE_PRESENT | _PAGE_PROTNONE);
} }
static inline int pte_hidden(pte_t x) static inline int pte_hidden(pte_t pte)
{ {
#ifdef CONFIG_KMEMCHECK return pte_flags(pte) & _PAGE_HIDDEN;
return pte_flags(x) & _PAGE_HIDDEN;
#else
return 0;
#endif
} }
static inline int pmd_present(pmd_t pmd) static inline int pmd_present(pmd_t pmd)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册