diff options
author | Jan Beulich <jbeulich@novell.com> | 2008-09-17 11:48:17 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-13 04:21:18 -0400 |
commit | 606ee44dbb72fd48beb47f171d7b9cecf6ade6dd (patch) | |
tree | f7e773665ac577a3553a1460cf73c33f1cff6162 /include/asm-x86/pgtable.h | |
parent | 5e72d9e4850c91b6a0f06fa803f7393b55a38aa8 (diff) |
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>
Diffstat (limited to 'include/asm-x86/pgtable.h')
-rw-r--r-- | include/asm-x86/pgtable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/pgtable.h b/include/asm-x86/pgtable.h index 81805403b64a..182f9d4c570f 100644 --- a/include/asm-x86/pgtable.h +++ b/include/asm-x86/pgtable.h | |||
@@ -206,7 +206,7 @@ static inline int pte_exec(pte_t pte) | |||
206 | 206 | ||
207 | static inline int pte_special(pte_t pte) | 207 | static inline int pte_special(pte_t pte) |
208 | { | 208 | { |
209 | return pte_val(pte) & _PAGE_SPECIAL; | 209 | return pte_flags(pte) & _PAGE_SPECIAL; |
210 | } | 210 | } |
211 | 211 | ||
212 | static inline unsigned long pte_pfn(pte_t pte) | 212 | static inline unsigned long pte_pfn(pte_t pte) |