aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-01-30 07:30:37 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:30:37 -0500
commit4757d7d8d00c5f8b2c176ca03b0a8eabbc206664 (patch)
treec362ddaf7c19fdf3703d414ad9f078a47790352f
parent0b80fc721bed2635c7f0b198e1c862a4596dc2cd (diff)
x86: put all kern_addr_valid() incarnations to pgtable.h
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--include/asm-x86/mmzone_32.h3
-rw-r--r--include/asm-x86/pgtable_32.h8
-rw-r--r--include/asm-x86/sparsemem_32.h3
3 files changed, 7 insertions, 7 deletions
diff --git a/include/asm-x86/mmzone_32.h b/include/asm-x86/mmzone_32.h
index 118e9812778f..5d6f4ce6e6d6 100644
--- a/include/asm-x86/mmzone_32.h
+++ b/include/asm-x86/mmzone_32.h
@@ -87,9 +87,6 @@ static inline int pfn_to_nid(unsigned long pfn)
87 __pgdat->node_start_pfn + __pgdat->node_spanned_pages; \ 87 __pgdat->node_start_pfn + __pgdat->node_spanned_pages; \
88}) 88})
89 89
90/* XXX: FIXME -- wli */
91#define kern_addr_valid(kaddr) (0)
92
93#ifdef CONFIG_X86_NUMAQ /* we have contiguous memory on NUMA-Q */ 90#ifdef CONFIG_X86_NUMAQ /* we have contiguous memory on NUMA-Q */
94#define pfn_valid(pfn) ((pfn) < num_physpages) 91#define pfn_valid(pfn) ((pfn) < num_physpages)
95#else 92#else
diff --git a/include/asm-x86/pgtable_32.h b/include/asm-x86/pgtable_32.h
index ed3e70d8d04b..a8be1ee15a99 100644
--- a/include/asm-x86/pgtable_32.h
+++ b/include/asm-x86/pgtable_32.h
@@ -497,9 +497,15 @@ static inline void paravirt_pagetable_setup_done(pgd_t *base)
497 497
498#endif /* !__ASSEMBLY__ */ 498#endif /* !__ASSEMBLY__ */
499 499
500/*
501 * kern_addr_valid() is (1) for FLATMEM and (0) for
502 * SPARSEMEM and DISCONTIGMEM
503 */
500#ifdef CONFIG_FLATMEM 504#ifdef CONFIG_FLATMEM
501#define kern_addr_valid(addr) (1) 505#define kern_addr_valid(addr) (1)
502#endif /* CONFIG_FLATMEM */ 506#else
507#define kern_addr_valid(kaddr) (0)
508#endif
503 509
504#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ 510#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
505 remap_pfn_range(vma, vaddr, pfn, size, prot) 511 remap_pfn_range(vma, vaddr, pfn, size, prot)
diff --git a/include/asm-x86/sparsemem_32.h b/include/asm-x86/sparsemem_32.h
index cfeed990585f..d89c32100591 100644
--- a/include/asm-x86/sparsemem_32.h
+++ b/include/asm-x86/sparsemem_32.h
@@ -24,8 +24,5 @@
24#define MAX_PHYSMEM_BITS 32 24#define MAX_PHYSMEM_BITS 32
25#endif 25#endif
26 26
27/* XXX: FIXME -- wli */
28#define kern_addr_valid(kaddr) (0)
29
30#endif /* CONFIG_SPARSEMEM */ 27#endif /* CONFIG_SPARSEMEM */
31#endif /* _I386_SPARSEMEM_H */ 28#endif /* _I386_SPARSEMEM_H */