
19 Dec
2012
19 Dec
'12
11:57 a.m.
imo, the platform_fence_before/after is not necessary ...
The cmpxchgl asm statement is not viewed as a compiler barrier, so the compiler can reorder the preceeding or subsequent operations with it. But if all asm operations are marked as memory clobbering it looks like the before/after functions become useless and can be removed.
that's my understanding, too ... can you review this patch? thnx, tim