Skip to content

Commit

Permalink
x86/paravirt: make set_pud operation common
Browse files Browse the repository at this point in the history
Remove duplicate set_pud()s.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Jeremy Fitzhardinge authored and Ingo Molnar committed Jan 30, 2008
1 parent 60b3f62 commit 28c6075
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions include/asm-x86/paravirt.h
Original file line number Diff line number Diff line change
Expand Up @@ -1086,17 +1086,19 @@ static inline pmdval_t pmd_val(pmd_t pmd)

return ret;
}
#endif /* PAGETABLE_LEVELS >= 3 */

#ifdef CONFIG_X86_PAE

static inline void set_pud(pud_t *pudp, pud_t pudval)
static inline void set_pud(pud_t *pudp, pud_t pud)
{
PVOP_VCALL3(pv_mmu_ops.set_pud, pudp,
pudval.pgd.pgd, pudval.pgd.pgd >> 32);
}
pudval_t val = native_pud_val(pud);

#endif /* CONFIG_X86_PAE */
if (sizeof(pudval_t) > sizeof(long))
PVOP_VCALL3(pv_mmu_ops.set_pud, pudp,
val, (u64)val >> 32);
else
PVOP_VCALL2(pv_mmu_ops.set_pud, pudp,
val);
}
#endif /* PAGETABLE_LEVELS >= 3 */

/* Lazy mode for batching updates / context switch */
enum paravirt_lazy_mode {
Expand Down

0 comments on commit 28c6075

Please sign in to comment.