Files
erofs-linux/arch/tile/lib
Chris Metcalf 2957c03539 tile: Provide atomic_{or,xor,and}
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 have to extend
the set of low-level assembly routines to include 32-bit "and",
as well as all three 64-bit routines.  Somewhat confusingly,
some 32-bit versions are already used by the bitops inlines, with
parameter types appropriate for bitops, so we have to do a bit of
casting to match "int" to "unsigned long".

Signed-off-by: Chris Metcalf <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
2015-07-27 14:06:24 +02:00
..
2015-07-27 14:06:24 +02:00
2013-09-03 14:52:09 -04:00
…
…
2015-05-11 11:22:40 -04:00
2013-09-03 14:53:29 -04:00
2013-09-03 14:53:29 -04:00
2013-09-03 14:52:09 -04:00
…
2013-09-03 14:53:29 -04:00
…