diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-02-05 14:30:48 -0500 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-02-06 15:31:07 -0500 |
commit | 5ba7c91341be61e0942f792c237ac067d9f32f51 (patch) | |
tree | f4c823f02eef1ab39749f9cec5e86da950ea546b /arch/x86/include/asm/pgtable.h | |
parent | 7c683851d96c8313586c0695b25ca41bde9f0f73 (diff) |
x86: unify pud_present
Impact: cleanup
Unify and demacro pud_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 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index 17fcc17d6b4f..c117b28df151 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h | |||
@@ -445,6 +445,13 @@ 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 | #if PAGETABLE_LEVELS > 2 | ||
449 | static inline int pud_present(pud_t pud) | ||
450 | { | ||
451 | return pud_val(pud) & _PAGE_PRESENT; | ||
452 | } | ||
453 | #endif /* PAGETABLE_LEVELS > 2 */ | ||
454 | |||
448 | #endif /* __ASSEMBLY__ */ | 455 | #endif /* __ASSEMBLY__ */ |
449 | 456 | ||
450 | #ifdef CONFIG_X86_32 | 457 | #ifdef CONFIG_X86_32 |