]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/memory_hotplug.c
[PATCH] pgdat allocation for new node add (specify node id)
[linux-2.6-omap-h63xx.git] / mm / memory_hotplug.c
index 841a077d5aeb0d3423ecba8ed5d81efdd72c2442..6cdeabe9f6d45a40ac36b7779c167060e7710af3 100644 (file)
@@ -163,3 +163,14 @@ int online_pages(unsigned long pfn, unsigned long nr_pages)
        vm_total_pages = nr_free_pagecache_pages();
        return 0;
 }
+
+int add_memory(int nid, u64 start, u64 size)
+{
+       int ret;
+
+       /* call arch's memory hotadd */
+       ret = arch_add_memory(nid, start, size);
+
+       return ret;
+}
+EXPORT_SYMBOL_GPL(add_memory);