x86: Improve Intel microcode loader performance
authorDimitri Sivanich <sivanich@sgi.com>
Fri, 5 Mar 2010 17:42:03 +0000 (11:42 -0600)
committerIngo Molnar <mingo@elte.hu>
Thu, 11 Mar 2010 12:49:06 +0000 (13:49 +0100)
commit938179b4f8cf8a4f11234ebf2dff2eb48400acfe
tree3dd4f2f66b68bdf0f488856e567fae898b29d4f5
parent522dba7134d6b2e5821d3457f7941ec34f668e6d
x86: Improve Intel microcode loader performance

We've noticed that on large SGI UV system configurations,
running microcode.ctl can take very long periods of time.  This
is due to the large number of vmalloc/vfree calls made by the
Intel generic_load_microcode() logic.

By reusing allocated space, the following patch reduces the time
to run microcode.ctl on a 1024 cpu system from approximately 80
seconds down to 1 or 2 seconds.

Signed-off-by: Dimitri Sivanich <sivanich@sgi.com>
Acked-by: Dmitry Adamushko <dmitry.adamushko@gmail.com>
Cc: Avi Kivity <avi@redhat.com>
Cc: Bill Davidsen <davidsen@tmr.com>
LKML-Reference: <20100305174203.GA19638@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/microcode_intel.c