summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/pgtable_32.h
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2009-02-05 22:31:01 +0300
committerJeremy Fitzhardinge <jeremy@goop.org>2009-02-06 23:31:49 +0300
commite24d7eee0beda24504bf6a4aa03be68328557475 (patch)
treedb6af59008420958bd27e7288fcc14add47bee74 /arch/x86/include/asm/pgtable_32.h
parent20063ca4eb26d4b10f01d59925deea4aeee415e8 (diff)
downloadlinux-e24d7eee0beda24504bf6a4aa03be68328557475.tar.xz
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.h9
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