aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/mm.h
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-23 16:55:56 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-23 16:55:56 +0000
commitbd3e1195d6941e8b2fe322d5b26d69b4ea0b58f7 (patch)
tree0c7879bff92156e2ad4f95a0e78c9bf298015040 /xen/include/xen/mm.h
parent07a46fde3570d9bb47a988e87259de229f437215 (diff)
downloadxen-bd3e1195d6941e8b2fe322d5b26d69b4ea0b58f7.tar.gz
xen-bd3e1195d6941e8b2fe322d5b26d69b4ea0b58f7.tar.bz2
xen-bd3e1195d6941e8b2fe322d5b26d69b4ea0b58f7.zip
xen memory allocator: hide generic allocator routines
This patch doesn't introduce functional changes, but simply moves code around to make the unused (outside of the page allocator) heap alloc functions taking an explicit zone parameter static without having to forward-prototype them in their source file. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/include/xen/mm.h')
-rw-r--r--xen/include/xen/mm.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/xen/include/xen/mm.h b/xen/include/xen/mm.h
index 9a121b1f08..909dcdcb12 100644
--- a/xen/include/xen/mm.h
+++ b/xen/include/xen/mm.h
@@ -46,15 +46,6 @@ unsigned long alloc_boot_low_pages(
int reserve_boot_pages(unsigned long first_pfn, unsigned long nr_pfns);
void end_boot_allocator(void);
-/* Generic allocator. These functions are *not* interrupt-safe. */
-void init_heap_pages(
- unsigned int zone, struct page_info *pg, unsigned long nr_pages);
-struct page_info *alloc_heap_pages(
- unsigned int zone, unsigned int cpu, unsigned int order);
-void free_heap_pages(
- unsigned int zone, struct page_info *pg, unsigned int order);
-void scrub_heap_pages(void);
-
/* Xen suballocator. These functions are interrupt-safe. */
void init_xenheap_pages(paddr_t ps, paddr_t pe);
void *alloc_xenheap_pages(unsigned int order);
@@ -71,10 +62,11 @@ struct page_info *__alloc_domheap_pages(
unsigned int memflags);
void free_domheap_pages(struct page_info *pg, unsigned int order);
unsigned long avail_domheap_pages(void);
-unsigned long avail_heap_pages(int zone, int node);
#define alloc_domheap_page(d) (alloc_domheap_pages(d,0,0))
#define free_domheap_page(p) (free_domheap_pages(p,0))
+void scrub_heap_pages(void);
+
int assign_pages(
struct domain *d,
struct page_info *pg,