linux/arch
Peter Zijlstra b0d8003ef4 frv: Rewrite atomic implementation
Mostly complete rewrite of the FRV atomic implementation, instead of
using assembly files, use inline assembler.

The out-of-line CONFIG option makes a bit of a mess of things, but a
little CPP trickery gets that done too.

FRV already had the atomic logic ops but under a non standard name,
the reimplementation provides the generic names and provides the
intermediate form required for the bitops implementation.

The slightly inconsistent __atomic32_fetch_##op naming is because
__atomic_fetch_##op conlicts with GCC builtin functions.

The 64bit atomic ops use the inline assembly %Ln construct to access
the low word register (r+1), afaik this construct was not previously
used in the kernel and is completely undocumented, but I found it in
the FRV GCC code and it seems to work.

FRV had a non-standard definition of atomic_{clear,set}_mask() which
would work types other than atomic_t, the one user relying on that
(arch/frv/kernel/dma.c) got converted to use the new intermediate
form.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2015-07-27 14:06:23 +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 mm: clean up per architecture MM hook header files 2015-07-17 16:39:53 -07: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: use free_bootmem_late() for initrd 2015-07-23 14:11:09 -04: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