On Thu, 26 May 2011, Pekka Enberg wrote: > On Mon, 2011-05-16 at 15:26 -0500, Christoph Lameter wrote: > > plain text document attachment (cmpxchg_double_x86) > > A simple implementation that only supports the word size and does not > > have a fallback mode (would require a spinlock). > > > > And 32 and 64 bit support for cmpxchg_double. cmpxchg double uses > > the cmpxchg8b or cmpxchg16b instruction on x86 processors to compare > > and swap 2 machine words. This allows lockless algorithms to move more > > context information through critical sections. > > > > Set a flag CONFIG_CMPXCHG_DOUBLE to signal the support of that feature > > during kernel builds. > > > > Signed-off-by: Christoph Lameter <cl@xxxxxxxxx> > > You forgot to CC Tejun for this patch. Ok. I can do that but the patch is not in the same context of the per cpu stuff that we worked on earlier. This is fully locked version of cmpxchg_double. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>