summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/pgalloc.h
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-03-17 16:36:56 -0700
committerIngo Molnar <mingo@elte.hu>2008-04-24 23:57:30 +0200
commit1d262d3a4932b5ae7222c8d9900696650ee95188 (patch)
treefba59ab4d5c7595e2d6bfa32eecf53d2054743aa /include/asm-x86/pgalloc.h
parent1ec1fe73dfb711f9ea5a0ef8a7e3af5b6ac8b653 (diff)
downloadblackbird-obmc-linux-1d262d3a4932b5ae7222c8d9900696650ee95188.tar.gz
blackbird-obmc-linux-1d262d3a4932b5ae7222c8d9900696650ee95188.zip
x86: put paravirt stubs into common asm/pgalloc.h
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/pgalloc.h')
-rw-r--r--include/asm-x86/pgalloc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-x86/pgalloc.h b/include/asm-x86/pgalloc.h
index ea9d27ad7f4e..28773594f741 100644
--- a/include/asm-x86/pgalloc.h
+++ b/include/asm-x86/pgalloc.h
@@ -5,6 +5,16 @@
#include <linux/mm.h> /* for struct page */
#include <linux/pagemap.h>
+#ifdef CONFIG_PARAVIRT
+#include <asm/paravirt.h>
+#else
+#define paravirt_alloc_pt(mm, pfn) do { } while (0)
+#define paravirt_alloc_pd(mm, pfn) do { } while (0)
+#define paravirt_alloc_pd_clone(pfn, clonepfn, start, count) do { } while (0)
+#define paravirt_release_pt(pfn) do { } while (0)
+#define paravirt_release_pd(pfn) do { } while (0)
+#endif
+
/*
* Allocate and free page tables.
*/
OpenPOWER on IntegriCloud