diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-02-05 20:31:01 +0100 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-02-06 21:31:49 +0100 |
commit | e24d7eee0beda24504bf6a4aa03be68328557475 (patch) | |
tree | db6af59008420958bd27e7288fcc14add47bee74 /arch/x86/include/asm/pgtable_32.h | |
parent | x86: unify pmd_page (diff) | |
download | linux-e24d7eee0beda24504bf6a4aa03be68328557475.tar.xz linux-e24d7eee0beda24504bf6a4aa03be68328557475.zip |
x86: unify pmd_index
Impact: cleanup
Unify and demacro pmd_index.
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 | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/x86/include/asm/pgtable_32.h b/arch/x86/include/asm/pgtable_32.h index 8714110b4a78..40b066215bb8 100644 --- a/arch/x86/include/asm/pgtable_32.h +++ b/arch/x86/include/asm/pgtable_32.h @@ -105,15 +105,6 @@ extern unsigned long pg0[]; static inline int pud_large(pud_t pud) { return 0; } /* - * the pmd page can be thought of an array like this: pmd_t[PTRS_PER_PMD] - * - * this macro returns the index of the entry in the pmd page which would - * control the given virtual address - */ -#define pmd_index(address) \ - (((address) >> PMD_SHIFT) & (PTRS_PER_PMD - 1)) - -/* * the pte page can be thought of an array like this: pte_t[PTRS_PER_PTE] * * this macro returns the index of the entry in the pte page which would |