]> 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>
Tue, 27 Sep 2011 06:44:59 +0000 (16:44 +1000)
commitccfa898fc2f66355fb74ede3347a6d21f0fc5c76
tree9c700401dac3a3dc8943d3e8c058a32046875229
parent615423e421b2b13a0b6db5f23af314cb53907b59
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