]> err.no Git - linux-2.6/commitdiff
bootmem: Move node allocation macros back to !HAVE_ARCH_BOOTMEM_NODE
authorJohannes Weiner <hannes@saeurebad.de>
Fri, 25 Jul 2008 13:48:04 +0000 (15:48 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 18:36:44 +0000 (11:36 -0700)
These got unintentionally moved, put them back as x86 provides its own
versions.

Signed-off-by: Johannes Weiner <hannes@saeurebad.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/bootmem.h

index 4ddf2922fc8d60461f31ed3aa63b8d88373a20c3..652470b687c9533f09fc8829d829f3d8fa768b6b 100644 (file)
@@ -103,17 +103,16 @@ extern void *__alloc_bootmem_low_node(pg_data_t *pgdat,
        __alloc_bootmem(x, PAGE_SIZE, __pa(MAX_DMA_ADDRESS))
 #define alloc_bootmem_low_pages(x) \
        __alloc_bootmem_low(x, PAGE_SIZE, 0)
-#endif /* !CONFIG_HAVE_ARCH_BOOTMEM_NODE */
-
-extern int reserve_bootmem_generic(unsigned long addr, unsigned long size,
-                                  int flags);
-
 #define alloc_bootmem_node(pgdat, x) \
        __alloc_bootmem_node(pgdat, x, SMP_CACHE_BYTES, __pa(MAX_DMA_ADDRESS))
 #define alloc_bootmem_pages_node(pgdat, x) \
        __alloc_bootmem_node(pgdat, x, PAGE_SIZE, __pa(MAX_DMA_ADDRESS))
 #define alloc_bootmem_low_pages_node(pgdat, x) \
        __alloc_bootmem_low_node(pgdat, x, PAGE_SIZE, 0)
+#endif /* !CONFIG_HAVE_ARCH_BOOTMEM_NODE */
+
+extern int reserve_bootmem_generic(unsigned long addr, unsigned long size,
+                                  int flags);
 
 extern void *alloc_bootmem_section(unsigned long size,
                                   unsigned long section_nr);