aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/cpumask.c16
-rw-r--r--mm/page_alloc.c16
2 files changed, 16 insertions, 16 deletions
diff --git a/lib/cpumask.c b/lib/cpumask.c
index 7a2a73f88d59..3a67dc5ada7d 100644
--- a/lib/cpumask.c
+++ b/lib/cpumask.c
@@ -43,19 +43,3 @@ int __any_online_cpu(const cpumask_t *mask)
43 return cpu; 43 return cpu;
44} 44}
45EXPORT_SYMBOL(__any_online_cpu); 45EXPORT_SYMBOL(__any_online_cpu);
46
47#if MAX_NUMNODES > 1
48/*
49 * Find the highest possible node id.
50 */
51int highest_possible_node_id(void)
52{
53 unsigned int node;
54 unsigned int highest = 0;
55
56 for_each_node_mask(node, node_possible_map)
57 highest = node;
58 return highest;
59}
60EXPORT_SYMBOL(highest_possible_node_id);
61#endif
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index afee38f04d84..ebd425c2e2a7 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -3120,3 +3120,19 @@ unsigned long page_to_pfn(struct page *page)
3120EXPORT_SYMBOL(pfn_to_page); 3120EXPORT_SYMBOL(pfn_to_page);
3121EXPORT_SYMBOL(page_to_pfn); 3121EXPORT_SYMBOL(page_to_pfn);
3122#endif /* CONFIG_OUT_OF_LINE_PFN_TO_PAGE */ 3122#endif /* CONFIG_OUT_OF_LINE_PFN_TO_PAGE */
3123
3124#if MAX_NUMNODES > 1
3125/*
3126 * Find the highest possible node id.
3127 */
3128int highest_possible_node_id(void)
3129{
3130 unsigned int node;
3131 unsigned int highest = 0;
3132
3133 for_each_node_mask(node, node_possible_map)
3134 highest = node;
3135 return highest;
3136}
3137EXPORT_SYMBOL(highest_possible_node_id);
3138#endif