aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/numa_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/mm/numa_64.c')
-rw-r--r--arch/x86/mm/numa_64.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/x86/mm/numa_64.c b/arch/x86/mm/numa_64.c
index 29b69300aee2..46b4b5e1a02a 100644
--- a/arch/x86/mm/numa_64.c
+++ b/arch/x86/mm/numa_64.c
@@ -153,12 +153,10 @@ int __init compute_hash_shift(struct bootnode *nodes, int numnodes)
153 return shift; 153 return shift;
154} 154}
155 155
156#ifdef CONFIG_SPARSEMEM
157int early_pfn_to_nid(unsigned long pfn) 156int early_pfn_to_nid(unsigned long pfn)
158{ 157{
159 return phys_to_nid(pfn << PAGE_SHIFT); 158 return phys_to_nid(pfn << PAGE_SHIFT);
160} 159}
161#endif
162 160
163static void * __init early_node_mem(int nodeid, unsigned long start, 161static void * __init early_node_mem(int nodeid, unsigned long start,
164 unsigned long end, unsigned long size) 162 unsigned long end, unsigned long size)
@@ -635,23 +633,4 @@ void __init init_cpu_to_node(void)
635 } 633 }
636} 634}
637 635
638#ifdef CONFIG_DISCONTIGMEM
639/*
640 * Functions to convert PFNs from/to per node page addresses.
641 * These are out of line because they are quite big.
642 * They could be all tuned by pre caching more state.
643 * Should do that.
644 */
645 636
646int pfn_valid(unsigned long pfn)
647{
648 unsigned nid;
649 if (pfn >= num_physpages)
650 return 0;
651 nid = pfn_to_nid(pfn);
652 if (nid == 0xff)
653 return 0;
654 return pfn >= node_start_pfn(nid) && (pfn) < node_end_pfn(nid);
655}
656EXPORT_SYMBOL(pfn_valid);
657#endif