aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/memory_hotplug.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
index 841a077d5aeb..6cdeabe9f6d4 100644
--- a/mm/memory_hotplug.c
+++ b/mm/memory_hotplug.c
@@ -163,3 +163,14 @@ int online_pages(unsigned long pfn, unsigned long nr_pages)
163 vm_total_pages = nr_free_pagecache_pages(); 163 vm_total_pages = nr_free_pagecache_pages();
164 return 0; 164 return 0;
165} 165}
166
167int add_memory(int nid, u64 start, u64 size)
168{
169 int ret;
170
171 /* call arch's memory hotadd */
172 ret = arch_add_memory(nid, start, size);
173
174 return ret;
175}
176EXPORT_SYMBOL_GPL(add_memory);