aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/tmem.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-06-23 23:23:22 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-06-23 23:23:22 +0100
commit89784f9469174e6b30cfcfa74162d45f268d366a (patch)
treeeda1cc516798583bd6046d4c5d947c877fe8e8f6 /xen/common/tmem.c
parent7b76ecc628b908df7bc1c677be5419985eceb25d (diff)
downloadxen-89784f9469174e6b30cfcfa74162d45f268d366a.tar.gz
xen-89784f9469174e6b30cfcfa74162d45f268d366a.tar.bz2
xen-89784f9469174e6b30cfcfa74162d45f268d366a.zip
tmem: skip special case in alloc_heap_pages() if tmem holds no pages
Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Diffstat (limited to 'xen/common/tmem.c')
-rw-r--r--xen/common/tmem.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xen/common/tmem.c b/xen/common/tmem.c
index a3f236ae0b..b917fae522 100644
--- a/xen/common/tmem.c
+++ b/xen/common/tmem.c
@@ -2850,6 +2850,11 @@ EXPORT void *tmem_relinquish_pages(unsigned int order, unsigned int memflags)
return pfp;
}
+EXPORT unsigned long tmem_freeable_pages(void)
+{
+ return tmh_freeable_pages();
+}
+
/* called at hypervisor startup */
static int __init init_tmem(void)
{