[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 4 of 6] [XEN][LINUX] #ifdef x86-specific alloc_vm_area()



1 file changed, 3 insertions(+), 7 deletions(-)
drivers/xen/util.c |   10 +++-------


# HG changeset patch
# User Hollis Blanchard <hollisb@xxxxxxxxxx>
# Date 1183669278 18000
# Node ID 4d8b8e9dd58e1de258d7418f5dabf694501b1bd8
# Parent  e2681868041e35f127ee6cb5111317c3a96505e8
[XEN][LINUX] #ifdef x86-specific alloc_vm_area().
Since neither IA64 nor PowerPC wants this code, in the future it should really
be moved out of drivers/xen/
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>

diff -r e2681868041e -r 4d8b8e9dd58e drivers/xen/util.c
--- a/drivers/xen/util.c        Thu Jul 05 16:01:18 2007 -0500
+++ b/drivers/xen/util.c        Thu Jul 05 16:01:18 2007 -0500
@@ -22,9 +22,8 @@ struct class *get_xen_class(void)
 }
 EXPORT_SYMBOL_GPL(get_xen_class);
 
-/* Todo: merge ia64 ('auto-translate physmap') versions of these functions. */
-#ifndef __ia64__
-
+#ifdef CONFIG_X86
+/* Todo: Move these functions into arch-specific code. */
 static int f(pte_t *pte, struct page *pmd_page, unsigned long addr, void *data)
 {
        /* apply_to_page_range() does all the hard work. */
@@ -50,9 +49,7 @@ struct vm_struct *alloc_vm_area(unsigned
        }
 
        /* Map page directories into every address space. */
-#ifdef CONFIG_X86
        vmalloc_sync_all();
-#endif
 
        return area;
 }
@@ -66,5 +63,4 @@ void free_vm_area(struct vm_struct *area
        kfree(area);
 }
 EXPORT_SYMBOL_GPL(free_vm_area);
-
-#endif /* !__ia64__ */
+#endif /* CONFIG_X86 */

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.