|
@@ -1706,7 +1706,7 @@ static int check_cpu_on_node(void *data)
|
|
|
}
|
|
|
|
|
|
/* offline the node if all memory sections of this node are removed */
|
|
|
-static void try_offline_node(int nid)
|
|
|
+void try_offline_node(int nid)
|
|
|
{
|
|
|
pg_data_t *pgdat = NODE_DATA(nid);
|
|
|
unsigned long start_pfn = pgdat->node_start_pfn;
|
|
@@ -1762,6 +1762,7 @@ static void try_offline_node(int nid)
|
|
|
*/
|
|
|
memset(pgdat, 0, sizeof(*pgdat));
|
|
|
}
|
|
|
+EXPORT_SYMBOL(try_offline_node);
|
|
|
|
|
|
int __ref remove_memory(int nid, u64 start, u64 size)
|
|
|
{
|