aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/pgtable_32.h
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2009-02-05 14:31:01 -0500
committerJeremy Fitzhardinge <jeremy@goop.org>2009-02-06 15:31:49 -0500
commite24d7eee0beda24504bf6a4aa03be68328557475 (patch)
treedb6af59008420958bd27e7288fcc14add47bee74 /arch/x86/include/asm/pgtable_32.h
parent20063ca4eb26d4b10f01d59925deea4aeee415e8 (diff)
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[];
105static inline int pud_large(pud_t pud) { return 0; } 105static inline int pud_large(pud_t pud) { return 0; }
106 106
107/* 107/*
108 * the pmd page can be thought of an array like this: pmd_t[PTRS_PER_PMD]
109 *
110 * this macro returns the index of the entry in the pmd page which would
111 * control the given virtual address
112 */
113#define pmd_index(address) \
114 (((address) >> PMD_SHIFT) & (PTRS_PER_PMD - 1))
115
116/*
117 * the pte page can be thought of an array like this: pte_t[PTRS_PER_PTE] 108 * the pte page can be thought of an array like this: pte_t[PTRS_PER_PTE]
118 * 109 *
119 * this macro returns the index of the entry in the pte page which would 110 * this macro returns the index of the entry in the pte page which would