Re: [PATCH 01/22] x86: add methods for writing of an MSR on severalCPUs

From: Borislav Petkov
Date: Mon May 25 2009 - 07:02:16 EST


On Fri, May 22, 2009 at 09:47:49AM -0700, H. Peter Anvin wrote:
> Borislav Petkov wrote:
> >>>
> >> If nothing else it might matter for boot time. Serializing *anything*
> >> across a large number of CPUs can be very expensive.
> >
> > well, upon a closer look, smp_call_function_many() skips over the CPU
> > it is executing on and there's currently work in that area to extend
> > that API: http://marc.info/?l=linux-kernel&m=123979231511594&w=2.
> >
> > However, according to Linus' comments, it looks like this would need a
> > bit of work so I guess we should wait with the concurrency stuff a bit,
> > no?
> >
>
> Well, we can introduce the API now if that's where we intend it to go.

Ok, here it is (patches as a reply to that mail). I've added a temporary
workaround for smp_call_function_many() not running on the CPU we're on.

--
Regards/Gruss,
Boris.

Operating | Advanced Micro Devices GmbH
System | Karl-Hammerschmidt-Str. 34, 85609 Dornach b. München, Germany
Research | Geschäftsführer: Thomas M. McCoy, Giuliano Meroni
Center | Sitz: Dornach, Gemeinde Aschheim, Landkreis München
(OSRC) | Registergericht München, HRB Nr. 43632

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/