diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-02-05 14:30:51 -0500 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-02-06 15:31:48 -0500 |
commit | 4fea801ac95d6534a93aa01d3ac62be163d845af (patch) | |
tree | a5a285d5fd1c07c8d24d8da2f0517ac3f71cc9ed /arch/x86/include/asm/pgtable_32.h | |
parent | 649e8ef60fac0a2f6960cdb090d73e78717ac065 (diff) |
x86: unify pmd_none
Impact: cleanup
Unify and demacro pmd_none.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'arch/x86/include/asm/pgtable_32.h')
-rw-r--r-- | arch/x86/include/asm/pgtable_32.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/include/asm/pgtable_32.h b/arch/x86/include/asm/pgtable_32.h index f35160730b6..26e73569223 100644 --- a/arch/x86/include/asm/pgtable_32.h +++ b/arch/x86/include/asm/pgtable_32.h | |||
@@ -85,8 +85,6 @@ extern void set_pmd_pfn(unsigned long, unsigned long, pgprot_t); | |||
85 | /* The boot page tables (all created as a single array) */ | 85 | /* The boot page tables (all created as a single array) */ |
86 | extern unsigned long pg0[]; | 86 | extern unsigned long pg0[]; |
87 | 87 | ||
88 | /* To avoid harmful races, pmd_none(x) should check only the lower when PAE */ | ||
89 | #define pmd_none(x) (!(unsigned long)pmd_val((x))) | ||
90 | #define pmd_bad(x) ((pmd_val(x) & (PTE_FLAGS_MASK & ~_PAGE_USER)) != _KERNPG_TABLE) | 88 | #define pmd_bad(x) ((pmd_val(x) & (PTE_FLAGS_MASK & ~_PAGE_USER)) != _KERNPG_TABLE) |
91 | 89 | ||
92 | #define pages_to_mb(x) ((x) >> (20-PAGE_SHIFT)) | 90 | #define pages_to_mb(x) ((x) >> (20-PAGE_SHIFT)) |