]> 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>
Mon, 12 Sep 2011 05:27:08 +0000 (15:27 +1000)
commite53e8e0f7470be040a9e87967af5d98829dbd5b3
tree52899440101e0d0eca8c711fb48d213d63c1afd7
parent85ccb3eabaac2fb5a2bfd9314131da590bfa6398
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