Messages in this thread | | | From | Markus Kohm <> | Subject | Re: [patch] x86, mtrr: avoid MTRR reprogramming on BP during boot on UP platforms | Date | Thu, 3 Feb 2011 09:05:13 +0100 |
| |
Suresh Siddha wrote on Thursday 03 February 2011: > diff --git a/arch/x86/kernel/cpu/mtrr/main.c > b/arch/x86/kernel/cpu/mtrr/main.c index 01c0f3e..4fe5ebc 100644 > --- a/arch/x86/kernel/cpu/mtrr/main.c > +++ b/arch/x86/kernel/cpu/mtrr/main.c > @@ -793,13 +793,21 @@ void set_mtrr_aps_delayed_init(void) > } > > /* > - * MTRR initialization for all AP's > + * Delayed MTRR initialization for all AP's > */ > void mtrr_aps_init(void) > { > if (!use_intel()) > return; > > + /* > + * Check if someone has requested the delay of AP MTRR > initialization, + * by doing set_mtrr_aps_delayed_init(), prior to > this point. If not, + * then we are done. > + */ > + if (!mtrr_aps_delayed_init) > + return; > + > set_mtrr(~0U, 0, 0, 0); > mtrr_aps_delayed_init = false; > }
ACK
I've tested with kernel 2.6.38-rc3. The hard hang regression is fixed.
Thank you very much!
| |