linux/arch
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 <cmetcalf@ezchip.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1436474297-32187-1-git-send-email-cmetcalf@ezchip.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2015-07-27 14:06:24 +02:00
..
alpha alpha: Provide atomic_{or,xor,and} 2015-07-27 14:06:21 +02:00
arc arc: Provide atomic_{or,xor,and} 2015-07-27 14:06:21 +02:00
arm arm: Provide atomic_{or,xor,and} 2015-07-27 14:06:21 +02:00
arm64 arm64: Provide atomic_{or,xor,and} 2015-07-27 14:06:22 +02:00
avr32 avr32: Provide atomic_{or,xor,and} 2015-07-27 14:06:22 +02:00
blackfin blackfin: Provide atomic_{or,xor,and} 2015-07-27 14:06:22 +02:00
c6x mm: clean up per architecture MM hook header files 2015-07-17 16:39:53 -07:00
cris mm: clean up per architecture MM hook header files 2015-07-17 16:39:53 -07:00
frv frv: Rewrite atomic implementation 2015-07-27 14:06:23 +02:00
h8300 h8300: Provide atomic_{or,xor,and} 2015-07-27 14:06:24 +02:00
hexagon hexagon: Provide atomic_{or,xor,and} 2015-07-27 14:06:22 +02:00
ia64 ia64: Provide atomic_{or,xor,and} 2015-07-27 14:06:22 +02:00
m32r m32r: Provide atomic_{or,xor,and} 2015-07-27 14:06:22 +02:00
m68k m68k: Provide atomic_{or,xor,and} 2015-07-27 14:06:22 +02:00
metag metag: Provide atomic_{or,xor,and} 2015-07-27 14:06:22 +02:00
microblaze mm: clean up per architecture MM hook header files 2015-07-17 16:39:53 -07:00
mips mips: Provide atomic_{or,xor,and} 2015-07-27 14:06:22 +02:00
mn10300 mn10300: Provide atomic_{or,xor,and} 2015-07-27 14:06:23 +02:00
nios2 mm: clean up per architecture MM hook header files 2015-07-17 16:39:53 -07:00
openrisc mm: clean up per architecture MM hook header files 2015-07-17 16:39:53 -07:00
parisc parisc: Provide atomic_{or,xor,and} 2015-07-27 14:06:23 +02:00
powerpc powerpc: Provide atomic_{or,xor,and} 2015-07-27 14:06:23 +02:00
s390 s390: Provide atomic_{or,xor,and} 2015-07-27 14:06:23 +02:00
score mm: clean up per architecture MM hook header files 2015-07-17 16:39:53 -07:00
sh sh: Provide atomic_{or,xor,and} 2015-07-27 14:06:23 +02:00
sparc sparc: Provide atomic_{or,xor,and} 2015-07-27 14:06:23 +02:00
tile tile: Provide atomic_{or,xor,and} 2015-07-27 14:06:24 +02:00
um mm: clean up per architecture MM hook header files 2015-07-17 16:39:53 -07:00
unicore32 mm: clean up per architecture MM hook header files 2015-07-17 16:39:53 -07:00
x86 x86: Provide atomic_{or,xor,and} 2015-07-27 14:06:23 +02:00
xtensa xtensa: Provide atomic_{or,xor,and} 2015-07-27 14:06:23 +02:00
.gitignore
Kconfig x86/fpu, sched: Introduce CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT and use it on x86 2015-07-18 03:42:51 +02:00