2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-18 18:23:53 +08:00

x86: unify pte_hidden

Unify and demacro pte_hidden.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>

[rebased for mainline inclusion]
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
This commit is contained in:
Jeremy Fitzhardinge 2009-02-06 13:05:56 -08:00 committed by Vegard Nossum
parent 9d31c5068b
commit eb63657e13

View File

@ -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)