ia64/xen-unstable

changeset 6709:c7999d49ecf7

No need to qsort the pfn array in domu builder.
author kaf24@firebug.cl.cam.ac.uk
date Thu Sep 08 17:47:48 2005 +0000 (2005-09-08)
parents aa0990ef260f
children 74371b962355
files tools/libxc/xc_linux_build.c
line diff
     1.1 --- a/tools/libxc/xc_linux_build.c	Thu Sep 08 17:42:49 2005 +0000
     1.2 +++ b/tools/libxc/xc_linux_build.c	Thu Sep 08 17:47:48 2005 +0000
     1.3 @@ -283,11 +283,6 @@ static int setup_pg_tables_64(int xc_han
     1.4  }
     1.5  #endif
     1.6  
     1.7 -static int compare (const void * a, const void * b)
     1.8 -{
     1.9 -  return ( *(long*)a - *(long*)b );
    1.10 -}
    1.11 -
    1.12  #ifdef __ia64__
    1.13  #include <asm/fpu.h> /* for FPSR_DEFAULT */
    1.14  static int setup_guest(int xc_handle,
    1.15 @@ -501,9 +496,6 @@ static int setup_guest(int xc_handle,
    1.16          goto error_out;
    1.17      }
    1.18  
    1.19 -    qsort( page_array, nr_pages, sizeof(*page_array), compare );
    1.20 -
    1.21 -
    1.22      (load_funcs.loadimage)(image, image_size, xc_handle, dom, page_array,
    1.23                             &dsi);
    1.24