x86: make mm/gup.c more virtualization friendly
authorJan Beulich <jbeulich@novell.com>
Wed, 17 Sep 2008 15:48:17 +0000 (16:48 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 13 Oct 2008 08:21:18 +0000 (10:21 +0200)
commit606ee44dbb72fd48beb47f171d7b9cecf6ade6dd
treef7e773665ac577a3553a1460cf73c33f1cff6162
parent5e72d9e4850c91b6a0f06fa803f7393b55a38aa8
x86: make mm/gup.c more virtualization friendly

Since pte_flags() is much cheaper than pte_val() in some virtualized
environments (namely, Xen), use the former whereever possible.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Cc: "Nick Piggin" <npiggin@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/gup.c
include/asm-x86/pgtable.h