diff options
| author | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-02-06 16:05:56 -0500 |
|---|---|---|
| committer | Vegard Nossum <vegard.nossum@gmail.com> | 2009-06-15 09:49:20 -0400 |
| commit | eb63657e1314ae4af5e19a61db8dc1b6e935775a (patch) | |
| tree | 569e6d7c374be632bd97c89131926629043402fa | |
| parent | 9d31c5068b852deaf02ccfb4a1ed2b54f3b9358a (diff) | |
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>
| -rw-r--r-- | arch/x86/include/asm/pgtable.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index c5a08079ad5e..3cc06e3fceb8 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h | |||
| @@ -317,13 +317,9 @@ static inline int pte_present(pte_t a) | |||
| 317 | return pte_flags(a) & (_PAGE_PRESENT | _PAGE_PROTNONE); | 317 | return pte_flags(a) & (_PAGE_PRESENT | _PAGE_PROTNONE); |
| 318 | } | 318 | } |
| 319 | 319 | ||
| 320 | static inline int pte_hidden(pte_t x) | 320 | static inline int pte_hidden(pte_t pte) |
| 321 | { | 321 | { |
| 322 | #ifdef CONFIG_KMEMCHECK | 322 | return pte_flags(pte) & _PAGE_HIDDEN; |
| 323 | return pte_flags(x) & _PAGE_HIDDEN; | ||
| 324 | #else | ||
| 325 | return 0; | ||
| 326 | #endif | ||
| 327 | } | 323 | } |
| 328 | 324 | ||
| 329 | static inline int pmd_present(pmd_t pmd) | 325 | static inline int pmd_present(pmd_t pmd) |
