From: Mike Ditto Date: Tue, 15 Nov 2011 22:46:50 +0000 (-0800) Subject: arch/x86/kernel/e820.c: Eliminate bubble sort from sanitize_e820_map() X-Git-Tag: v3.3-rc1~96^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1bbdd669298b7ca08284ddb29153dfc039dd89d;p=pandora-kernel.git arch/x86/kernel/e820.c: Eliminate bubble sort from sanitize_e820_map() Replace the bubble sort in sanitize_e820_map() with a call to the generic kernel sort function to avoid pathological performance with large maps. On large (thousands of entries) E820 maps, the previous code took minutes to run; with this change it's now milliseconds. Signed-off-by: Mike Ditto Cc: sassmann@kpanic.de Cc: yuenn@google.com Cc: Stefan Assmann Cc: Nancy Yuen Cc: "H. Peter Anvin" Signed-off-by: Andrew Morton Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed