On Tue, 24 Aug 1999, David S. Miller wrote: > This 'merges' the barrier and the write. Or rather, in asm-i386 we could > do something like: > > #define set_mb(addr,val) xchgl(addr,val) > > and then use set_barrier(). > > Sure, but it costs ~8 instructions instead of 2 on ll/sc architectures. i was not clear enough - this is why i said 'in i386-asm'. Other (saner) architectures can use normal writes and sane barriers. -- mingo - Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/ To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]
- Re: [patch] possible SMP races all over the place in w... Andrea Arcangeli
- Re: [patch] possible SMP races all over the place... Alan Cox
- Re: [patch] possible SMP races all over the p... Linus Torvalds
- Re: [patch] possible SMP races all over t... Alan Cox
- Re: [patch] possible SMP races all over t... Andrea Arcangeli
- Re: [patch] possible SMP races all over the place... Jeremy Fitzhardinge
- Re: [patch] possible SMP races all over the p... Andrea Arcangeli
- Re: [patch] possible SMP races all over the place... Ingo Molnar
- Re: [patch] possible SMP races all over the p... David S. Miller
- Re: [patch] possible SMP races all over t... Andrea Arcangeli
- Ingo Molnar
