aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/pgtable.h
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2009-02-05 11:30:43 -0800
committerJeremy Fitzhardinge <jeremy@goop.org>2009-02-06 12:26:08 -0800
commita034a010f48bf49efe25098c16c16b9708ccbba5 (patch)
tree7ac8fb36b734be460b9a66f1e591015f4826720c /arch/x86/include/asm/pgtable.h
parent45c82b5a770be66845687a7d027c8b52946d59af (diff)
x86: unify pte_none
Impact: cleanup Unify and demacro pte_none. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'arch/x86/include/asm/pgtable.h')
-rw-r--r--arch/x86/include/asm/pgtable.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h
index 06bbcbd66e9..841e573b27f 100644
--- a/arch/x86/include/asm/pgtable.h
+++ b/arch/x86/include/asm/pgtable.h
@@ -429,6 +429,11 @@ static inline void __init paravirt_pagetable_setup_done(pgd_t *base)
}
#endif /* CONFIG_PARAVIRT */
+static inline int pte_none(pte_t pte)
+{
+ return !pte.pte;
+}
+
#endif /* __ASSEMBLY__ */
#ifdef CONFIG_X86_32