Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330399
b: refs/heads/master
c: ea54209
h: refs/heads/master
i:
  330397: 060643b
  330395: ead8ad4
  330391: 02c6066
  330383: 1847ada
  330367: 5c17732
v: v3
  • Loading branch information
Stefano Stabellini committed Aug 8, 2012
1 parent 7c1c1ff commit cab2a2a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ec53ecf38bcbf95b4b057328a8fbba4d22ef28b
refs/heads/master: ea54209b16cbecad8928f6067af29069ac44e360
18 changes: 18 additions & 0 deletions trunk/arch/arm/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,21 @@ static int __init xen_init_events(void)
return 0;
}
postcore_initcall(xen_init_events);

/* XXX: only until balloon is properly working */
int alloc_xenballooned_pages(int nr_pages, struct page **pages, bool highmem)
{
*pages = alloc_pages(highmem ? GFP_HIGHUSER : GFP_KERNEL,
get_order(nr_pages));
if (*pages == NULL)
return -ENOMEM;
return 0;
}
EXPORT_SYMBOL_GPL(alloc_xenballooned_pages);

void free_xenballooned_pages(int nr_pages, struct page **pages)
{
kfree(*pages);
*pages = NULL;
}
EXPORT_SYMBOL_GPL(free_xenballooned_pages);

0 comments on commit cab2a2a

Please sign in to comment.