the m2p translation process twice. With that removed, it can then
also be simplified.
Signed-off-by: Jan Beulich <JBeulich@novell.com>
Other CPUs get synced lazily via the page fault handler. */
static inline pud_t *pud_offset_k(unsigned long address)
{
- unsigned long addr;
-
- addr = pgd_val(init_level4_pgt[pud_index(address)]);
- addr &= PHYSICAL_PAGE_MASK; /* machine physical */
- addr = machine_to_phys(addr);
- return __pud_offset_k((pud_t *)__va(addr), address);
+ return pud_offset(pgd_offset_k(address), address);
}
/* PMD - Level 2 access */