ia64/xen-unstable

changeset 8636:3a62d8978788

The present pud_offset_k implementation runs the value read through
the m2p translation process twice. With that removed, it can then
also be simplified.

Signed-off-by: Jan Beulich <JBeulich@novell.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Jan 23 16:27:00 2006 +0100 (2006-01-23)
parents 34f2b388beb0
children d4e3f04e3d38 df36ac1ddcbf
files linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/pgtable.h
line diff
     1.1 --- a/linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/pgtable.h	Mon Jan 23 15:47:00 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/pgtable.h	Mon Jan 23 16:27:00 2006 +0100
     1.3 @@ -417,12 +417,7 @@ static inline pud_t *__pud_offset_k(pud_
     1.4     Other CPUs get synced lazily via the page fault handler. */
     1.5  static inline pud_t *pud_offset_k(unsigned long address)
     1.6  {
     1.7 -	unsigned long addr;
     1.8 -
     1.9 -	addr = pgd_val(init_level4_pgt[pud_index(address)]);
    1.10 -	addr &= PHYSICAL_PAGE_MASK; /* machine physical */
    1.11 -        addr = machine_to_phys(addr);
    1.12 -	return __pud_offset_k((pud_t *)__va(addr), address);
    1.13 +	return pud_offset(pgd_offset_k(address), address);
    1.14  }
    1.15  
    1.16  /* PMD  - Level 2 access */