Re: [PATCH 1/4] atomic_cmpxchg and friends

Alan Cox
2005-09-25T20:42:45Z

+#define atomic_cmpxchg(v, old, new) ((int)cmpxchg(&((v)->counter), old,
new))
+

Not all X86 has cmpxchg so the code there won't compile for all cases.