diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-02-05 14:30:50 -0500 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-02-06 15:31:47 -0500 |
commit | 649e8ef60fac0a2f6960cdb090d73e78717ac065 (patch) | |
tree | 011b0ccd37851a13add701d87cfb74074e8df1b0 /arch/x86/include/asm/pgtable.h | |
parent | 9f38d7e85e914f10a875f65d283432d55a12fc27 (diff) |
x86: unify pmd_present
Impact: cleanup
Unify and demacro pmd_present.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'arch/x86/include/asm/pgtable.h')
-rw-r--r-- | arch/x86/include/asm/pgtable.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index 339e49a9bb6c..147d3f097ab0 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h | |||
@@ -445,6 +445,11 @@ static inline int pte_present(pte_t a) | |||
445 | return pte_flags(a) & (_PAGE_PRESENT | _PAGE_PROTNONE); | 445 | return pte_flags(a) & (_PAGE_PRESENT | _PAGE_PROTNONE); |
446 | } | 446 | } |
447 | 447 | ||
448 | static inline int pmd_present(pmd_t pmd) | ||
449 | { | ||
450 | return pmd_val(pmd) & _PAGE_PRESENT; | ||
451 | } | ||
452 | |||
448 | #if PAGETABLE_LEVELS > 2 | 453 | #if PAGETABLE_LEVELS > 2 |
449 | static inline int pud_present(pud_t pud) | 454 | static inline int pud_present(pud_t pud) |
450 | { | 455 | { |