WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] No need to qsort the pfn array in domu builder.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 08 Sep 2005 17:48:10 +0000
Delivery-date: Thu, 08 Sep 2005 17:46:38 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] No need to qsort the pfn array in domu builder., Xen patchbot -unstable <=