commit | a034a010f48bf49efe25098c16c16b9708ccbba5 | [log] [tgz] |
---|---|---|
author | Jeremy Fitzhardinge <jeremy@goop.org> | Thu Feb 05 11:30:43 2009 -0800 |
committer | Jeremy Fitzhardinge <jeremy@goop.org> | Fri Feb 06 12:26:08 2009 -0800 |
tree | 7ac8fb36b734be460b9a66f1e591015f4826720c | |
parent | 45c82b5a770be66845687a7d027c8b52946d59af [diff] [blame] |
x86: unify pte_none Impact: cleanup Unify and demacro pte_none. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index 06bbcbd..841e573 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h
@@ -429,6 +429,11 @@ } #endif /* CONFIG_PARAVIRT */ +static inline int pte_none(pte_t pte) +{ + return !pte.pte; +} + #endif /* __ASSEMBLY__ */ #ifdef CONFIG_X86_32