# HG changeset patch
# User Hollis Blanchard <[EMAIL PROTECTED]>
# Node ID 116c58e44bbbd20a69c642ca7dad508eb5fef546
# Parent  f9437b9f6bdf0437b3458b067e24a70e79cb3ca6
[powerpc] implement page_is_removable()
Signed-off-by: Hollis Blanchard <[EMAIL PROTECTED]>
---
 xen/include/asm-powerpc/mm.h |    5 +++++
 1 files changed, 5 insertions(+)

diff -r f9437b9f6bdf -r 116c58e44bbb xen/include/asm-powerpc/mm.h
--- a/xen/include/asm-powerpc/mm.h      Thu Jul 27 14:28:30 2006 -0500
+++ b/xen/include/asm-powerpc/mm.h      Thu Jul 27 17:23:42 2006 -0500
@@ -158,6 +158,11 @@ static inline int get_page_and_type(stru
     return 1;
 }
 
+static inline int page_is_removable(struct page_info *page)
+{
+    return ((page->count_info & PGC_count_mask) == 1);
+}
+
 int get_page_type(struct page_info *page, u32 type);
 
 #define set_machinetophys(_mfn, _pfn) (trap(), 0)

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@lists.xensource.com
http://lists.xensource.com/xen-ppc-devel

Reply via email to