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-3level.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-3level.h')
-rw-r--r-- | arch/x86/include/asm/pgtable-3level.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/x86/include/asm/pgtable-3level.h b/arch/x86/include/asm/pgtable-3level.h index 51832fa04743..524bd91b9952 100644 --- a/arch/x86/include/asm/pgtable-3level.h +++ b/arch/x86/include/asm/pgtable-3level.h | |||
@@ -28,11 +28,6 @@ static inline int pud_bad(pud_t pud) | |||
28 | return (pud_val(pud) & ~(PTE_PFN_MASK | _KERNPG_TABLE | _PAGE_USER)) != 0; | 28 | return (pud_val(pud) & ~(PTE_PFN_MASK | _KERNPG_TABLE | _PAGE_USER)) != 0; |
29 | } | 29 | } |
30 | 30 | ||
31 | static inline int pud_present(pud_t pud) | ||
32 | { | ||
33 | return pud_val(pud) & _PAGE_PRESENT; | ||
34 | } | ||
35 | |||
36 | /* Rules for using set_pte: the pte being assigned *must* be | 31 | /* Rules for using set_pte: the pte being assigned *must* be |
37 | * either not present or in a state where the hardware will | 32 | * either not present or in a state where the hardware will |
38 | * not attempt to update the pte. In places where this is | 33 | * not attempt to update the pte. In places where this is |