]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Replace the bubble sort in sanitize_e820_map() with a call to the generic
authorMike Ditto <mditto@google.com>
Wed, 24 Aug 2011 23:46:17 +0000 (09:46 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 23 Sep 2011 05:15:03 +0000 (15:15 +1000)
commit467546ccad614f28d4c91549c8aa2b35a80c49b4
tree42fc876a953fde20865fa0e00fa68a9b53ca863e
parentf96ce4ef33e182816ff5cf9c507d235e3344e932
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 <mditto@google.com>
Cc: Stefan Assmann <sassmann@kpanic.de>
Cc: Nancy Yuen <yuenn@google.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/kernel/e820.c