[PATCH 24/28] tile: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
From: Chris Metcalf Implement atomic logic ops -- atomic_{or,xor,and}. For tilegx, these are relatively straightforward; the architecture provides atomic "or" and "and", both 32-bit and 64-bit. To support xor we provide a loop using "cmpexch". For the older 32-bit tilepro architecture, we

[PATCH 24/28] tile: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
From: Chris Metcalf cmetc...@ezchip.com Implement atomic logic ops -- atomic_{or,xor,and}. For tilegx, these are relatively straightforward; the architecture provides atomic or and and, both 32-bit and 64-bit. To support xor we provide a loop using cmpexch. For the older 32-bit tilepro