ia64/xen-unstable

changeset 10838:1fc28f62e0ed

[powerpc] implement page_is_removable()
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Hollis Blanchard <hollisb@us.ibm.com>
date Thu Jul 27 17:23:42 2006 -0500 (2006-07-27)
parents 15e4b258a69a
children 1eb42266de1b
files xen/include/asm-powerpc/mm.h
line diff
     1.1 --- a/xen/include/asm-powerpc/mm.h	Wed Jul 26 14:25:07 2006 -0400
     1.2 +++ b/xen/include/asm-powerpc/mm.h	Thu Jul 27 17:23:42 2006 -0500
     1.3 @@ -158,6 +158,11 @@ static inline int get_page_and_type(stru
     1.4      return 1;
     1.5  }
     1.6  
     1.7 +static inline int page_is_removable(struct page_info *page)
     1.8 +{
     1.9 +    return ((page->count_info & PGC_count_mask) == 1);
    1.10 +}
    1.11 +
    1.12  int get_page_type(struct page_info *page, u32 type);
    1.13  
    1.14  #define set_machinetophys(_mfn, _pfn) (trap(), 0)