Module: xenomai-rpm
Branch: for-upstream
Commit: bbcc7c1d5e8101fca9bc81e59a52b372ff33fabd
URL:    
http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=bbcc7c1d5e8101fca9bc81e59a52b372ff33fabd

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Jun  9 09:35:58 2010 +0200

wrappers: no need to reserve pages passed to vm_insert_page

---

 include/asm-generic/wrappers.h |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h
index ecc1867..a7349db 100644
--- a/include/asm-generic/wrappers.h
+++ b/include/asm-generic/wrappers.h
@@ -343,10 +343,9 @@ unsigned long find_next_bit(const unsigned long *addr,
 /* VM */
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15) && defined(CONFIG_MMU)
-#define wrap_remap_vm_page(vma,from,to) ({ \
-    vma->vm_flags |= VM_RESERVED; \
-    vm_insert_page(vma,from,vmalloc_to_page((void *)to)); \
-})
+#define wrap_remap_vm_page(vma,from,to) \
+    vm_insert_page(vma,from,vmalloc_to_page((void *)to))
+
 #define wrap_remap_io_page_range(vma,from,to,size,prot)  ({            \
     (vma)->vm_page_prot = pgprot_noncached((vma)->vm_page_prot);       \
     /* Sets VM_RESERVED | VM_IO | VM_PFNMAP on the vma. */             \


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to