memblock: replace free_bootmem{_node} with memblock_free
[linux-2.6-block.git] / arch / x86 / xen / p2m.c
index 5de761b4cec80745ce73bf3ef64a95efa4f675a1..b3e11afed25bbbc3f6497240cef40a59b5cc12b6 100644 (file)
@@ -68,6 +68,7 @@
 #include <linux/sched.h>
 #include <linux/seq_file.h>
 #include <linux/bootmem.h>
+#include <linux/memblock.h>
 #include <linux/slab.h>
 #include <linux/vmalloc.h>
 
@@ -190,7 +191,7 @@ static void * __ref alloc_p2m_page(void)
 static void __ref free_p2m_page(void *p)
 {
        if (unlikely(!slab_is_available())) {
-               free_bootmem((unsigned long)p, PAGE_SIZE);
+               memblock_free((unsigned long)p, PAGE_SIZE);
                return;
        }