]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: unify pud_none
authorJeremy Fitzhardinge <jeremy@goop.org>
Thu, 5 Feb 2009 19:31:13 +0000 (11:31 -0800)
committerJeremy Fitzhardinge <jeremy@goop.org>
Fri, 6 Feb 2009 20:31:51 +0000 (12:31 -0800)
Impact: cleanup

Unify and demacro pud_none.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
arch/x86/include/asm/pgtable-3level.h
arch/x86/include/asm/pgtable.h
arch/x86/include/asm/pgtable_64.h

index b92524eec2027a1b9564bb9e743d9d2338309f83..3f13cdf61156b4ed330ca60ea717b2044bc9faa6 100644 (file)
        printk("%s:%d: bad pgd %p(%016Lx).\n",                          \
               __FILE__, __LINE__, &(e), pgd_val(e))
 
-static inline int pud_none(pud_t pud)
-{
-       return pud_val(pud) == 0;
-}
-
 /* Rules for using set_pte: the pte being assigned *must* be
  * either not present or in a state where the hardware will
  * not attempt to update the pte.  In places where this is
index d4cbc8188c8ac351b6849243cf6fd78608876d7e..0ef49f3ebc8815b329a729b0dca55bdfbb6135c4 100644 (file)
@@ -525,6 +525,11 @@ static inline unsigned long pages_to_mb(unsigned long npg)
 }
 
 #if PAGETABLE_LEVELS > 2
+static inline int pud_none(pud_t pud)
+{
+       return pud_val(pud) == 0;
+}
+
 static inline int pud_present(pud_t pud)
 {
        return pud_val(pud) & _PAGE_PRESENT;
index 6c6c3c34bc5b20bd52ce7764d7410186e45d633d..d58c2ee15c3cd6c476f326c55124d4ac1a9140df 100644 (file)
@@ -68,7 +68,6 @@ extern void paging_init(void);
               __FILE__, __LINE__, &(e), pgd_val(e))
 
 #define pgd_none(x)    (!pgd_val(x))
-#define pud_none(x)    (!pud_val(x))
 
 struct mm_struct;