]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: put all kern_addr_valid() incarnations to pgtable.h
authorThomas Gleixner <tglx@linutronix.de>
Wed, 30 Jan 2008 12:30:37 +0000 (13:30 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:30:37 +0000 (13:30 +0100)
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-x86/mmzone_32.h
include/asm-x86/pgtable_32.h
include/asm-x86/sparsemem_32.h

index 118e9812778fd857f832632d2cbaa38a888cf9b0..5d6f4ce6e6d64b9fe7dce596f67e4b1165147e77 100644 (file)
@@ -87,9 +87,6 @@ static inline int pfn_to_nid(unsigned long pfn)
        __pgdat->node_start_pfn + __pgdat->node_spanned_pages;          \
 })
 
-/* XXX: FIXME -- wli */
-#define kern_addr_valid(kaddr) (0)
-
 #ifdef CONFIG_X86_NUMAQ            /* we have contiguous memory on NUMA-Q */
 #define pfn_valid(pfn)          ((pfn) < num_physpages)
 #else
index ed3e70d8d04bfc3a94a56f38b177850d756cad1a..a8be1ee15a99a1c652ff896cbc098b84ba2ef1c8 100644 (file)
@@ -497,9 +497,15 @@ static inline void paravirt_pagetable_setup_done(pgd_t *base)
 
 #endif /* !__ASSEMBLY__ */
 
+/*
+ * kern_addr_valid() is (1) for FLATMEM and (0) for
+ * SPARSEMEM and DISCONTIGMEM
+ */
 #ifdef CONFIG_FLATMEM
 #define kern_addr_valid(addr)  (1)
-#endif /* CONFIG_FLATMEM */
+#else
+#define kern_addr_valid(kaddr) (0)
+#endif
 
 #define io_remap_pfn_range(vma, vaddr, pfn, size, prot)                \
                remap_pfn_range(vma, vaddr, pfn, size, prot)
index cfeed990585fda8605b2a66ea322df5fe87b9ece..d89c32100591223d4531fe0ee37a11c3ec8ebacd 100644 (file)
@@ -24,8 +24,5 @@
 #define MAX_PHYSMEM_BITS       32
 #endif
 
-/* XXX: FIXME -- wli */
-#define kern_addr_valid(kaddr)  (0)
-
 #endif /* CONFIG_SPARSEMEM */
 #endif /* _I386_SPARSEMEM_H */