Re: [PATCH] [5/20] x86: Introduce nsec_barrier() II

2008-01-07 Thread Andi Kleen
Andi Kleen <[EMAIL PROTECTED]> writes: > On Thursday 03 January 2008 11:47:54 Ingo Molnar wrote: >> >> * Andi Kleen <[EMAIL PROTECTED]> wrote: >> >> > nsec_barrier() is a new barrier primitive that stops RDTSC speculation >> > to avoid races with timer interrupts on other CPUs. >> > >> > Add i

Re: [PATCH] [5/20] x86: Introduce nsec_barrier()

2008-01-03 Thread Andi Kleen
On Thursday 03 January 2008 11:47:54 Ingo Molnar wrote: > > * Andi Kleen <[EMAIL PROTECTED]> wrote: > > > nsec_barrier() is a new barrier primitive that stops RDTSC speculation > > to avoid races with timer interrupts on other CPUs. > > > > Add it to all architectures. Except for x86 it is a no

Re: [PATCH] [5/20] x86: Introduce nsec_barrier()

2008-01-03 Thread Ingo Molnar
* Andi Kleen <[EMAIL PROTECTED]> wrote: > nsec_barrier() is a new barrier primitive that stops RDTSC speculation > to avoid races with timer interrupts on other CPUs. > > Add it to all architectures. Except for x86 it is a nop right now. I > only tested x86, but it's a very simple change. > >

[PATCH] [5/20] x86: Introduce nsec_barrier()

2008-01-02 Thread Andi Kleen
nsec_barrier() is a new barrier primitive that stops RDTSC speculation to avoid races with timer interrupts on other CPUs. Add it to all architectures. Except for x86 it is a nop right now. I only tested x86, but it's a very simple change. On x86 it expands either to LFENCE (for Intel CPUs) or M