]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/bootmem.h
[PATCH] sparsemem base: simple NUMA remap space allocator
[linux-2.6-omap-h63xx.git] / include / linux / bootmem.h
index 0dd8ca1a3d5ac516bdaac0572d23e424a0099ebd..500f451ce0c0012dfe533ddd4f05b2a28db5b78f 100644 (file)
@@ -67,6 +67,15 @@ extern void * __init __alloc_bootmem_node (pg_data_t *pgdat, unsigned long size,
        __alloc_bootmem_node((pgdat), (x), PAGE_SIZE, 0)
 #endif /* !CONFIG_HAVE_ARCH_BOOTMEM_NODE */
 
+#ifdef CONFIG_HAVE_ARCH_ALLOC_REMAP
+extern void *alloc_remap(int nid, unsigned long size);
+#else
+static inline void *alloc_remap(int nid, unsigned long size)
+{
+       return NULL;
+}
+#endif
+
 extern unsigned long __initdata nr_kernel_pages;
 extern unsigned long __initdata nr_all_pages;