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

[Xen-changelog] No need to qsort the pfn array in domu builder.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID c7999d49ecf7c5370dbec14a65bd51d13292c737
# Parent  aa0990ef260fc2936794d59720b89e40cf50fae5
No need to qsort the pfn array in domu builder.

diff -r aa0990ef260f -r c7999d49ecf7 tools/libxc/xc_linux_build.c
--- a/tools/libxc/xc_linux_build.c      Thu Sep  8 17:42:49 2005
+++ b/tools/libxc/xc_linux_build.c      Thu Sep  8 17:47:48 2005
@@ -282,11 +282,6 @@
     return -1;
 }
 #endif
-
-static int compare (const void * a, const void * b)
-{
-  return ( *(long*)a - *(long*)b );
-}
 
 #ifdef __ia64__
 #include <asm/fpu.h> /* for FPSR_DEFAULT */
@@ -500,9 +495,6 @@
         PERROR("Could not get the page frame list");
         goto error_out;
     }
-
-    qsort( page_array, nr_pages, sizeof(*page_array), compare );
-
 
     (load_funcs.loadimage)(image, image_size, xc_handle, dom, page_array,
                            &dsi);

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


 


Rackspace

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