summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/pgtable_64.h
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2009-02-05 20:30:57 +0100
committerJeremy Fitzhardinge <jeremy@goop.org>2009-02-06 21:31:48 +0100
commit7cfb81024bc1dbe8ad2bf5affd58a6a7ad4172ba (patch)
treec223fd9057d3ec87b4990f94e4d04bb0e97c0134 /arch/x86/include/asm/pgtable_64.h
parentx86: unify pgd_page (diff)
downloadlinux-7cfb81024bc1dbe8ad2bf5affd58a6a7ad4172ba.tar.xz
linux-7cfb81024bc1dbe8ad2bf5affd58a6a7ad4172ba.zip
x86: unify pud_index
Impact: cleanup Unify and demacro pud_index. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'arch/x86/include/asm/pgtable_64.h')
-rw-r--r--arch/x86/include/asm/pgtable_64.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/include/asm/pgtable_64.h b/arch/x86/include/asm/pgtable_64.h
index 02477ad40fcd..c17c30f5751a 100644
--- a/arch/x86/include/asm/pgtable_64.h
+++ b/arch/x86/include/asm/pgtable_64.h
@@ -183,8 +183,6 @@ static inline int pgd_large(pgd_t pgd) { return 0; }
#define mk_kernel_pgd(address) __pgd((address) | _KERNPG_TABLE)
/* PUD - Level3 access */
-/* to find an entry in a page-table-directory. */
-#define pud_index(address) (((address) >> PUD_SHIFT) & (PTRS_PER_PUD - 1))
#define pud_offset(pgd, address) \
((pud_t *)pgd_page_vaddr(*(pgd)) + pud_index((address)))