x86: unify pmd_offset

Impact: cleanup

Unify and demacro pmd_offset.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
This commit is contained in:
Jeremy Fitzhardinge
2009-02-05 11:31:02 -08:00
parent e24d7eee0b
commit 01ade20d5a
3 changed files with 6 additions and 6 deletions

View File

@@ -115,10 +115,6 @@ static inline void pud_clear(pud_t *pudp)
write_cr3(pgd);
}
/* Find an entry in the second-level page table.. */
#define pmd_offset(pud, address) ((pmd_t *)pud_page_vaddr(*(pud)) + \
pmd_index(address))
#ifdef CONFIG_SMP
static inline pte_t native_ptep_get_and_clear(pte_t *ptep)
{