arch: Provide atomic logic ops
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest28 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/28 | atomic: Prepare generic atomic implementation for logic opsinclude/ | +10 | 0 replies | |
| 2/28 | alpha: Provide atomic_{or,xor,and}arch/ | +28 | 0 replies | |
| 3/28 | arc: Provide atomic_{or,xor,and}arch/ | +17 | 0 replies | |
| 4/28 | arm: Provide atomic_{or,xor,and}arch/ | +15 | 0 replies | |
| 5/28 | arm64: Provide atomic_{or,xor,and}arch/ | +15 | 0 replies | |
| 6/28 | avr32: Provide atomic_{or,xor,and}arch/ | +14 | 0 replies | |
| 7/28 | blackfin: Provide atomic_{or,xor,and}arch/ arch/ arch/ | +40 | 0 replies | |
| 8/28 | hexagon: Provide atomic_{or,xor,and}arch/ | +6 | 0 replies | |
| 9/28 | ia64: Provide atomic_{or,xor,and}arch/ | +22 | 0 replies | |
| 10/28 | m32r: Provide atomic_{or,xor,and}arch/ | +10 | 0 replies | |
| 11/28 | m68k: Provide atomic_{or,xor,and}arch/ | +10 | 0 replies | |
| 12/28 | metag: Provide atomic_{or,xor,and}arch/ arch/ | +17 | 0 replies | |
| 13/28 | mips: Provide atomic_{or,xor,and}arch/ | +9 | 0 replies | |
| 14/28 | mn10300: Provide atomic_{or,xor,and}arch/ | +10 | 0 replies | |
| 15/28 | parisc: Provide atomic_{or,xor,and}arch/ | +9 | 0 replies | |
| 16/28 | powerpc: Provide atomic_{or,xor,and}arch/ | +9 | 0 replies | |
| 17/28 | sh: Provide atomic_{or,xor,and}arch/ arch/ arch/ +1 more | +22 | 0 replies | |
| 18/28 | sparc: Provide atomic_{or,xor,and}arch/ arch/ arch/ +2 more | +38 | 0 replies | |
| 19/28 | xtensa: Provide atomic_{or,xor,and}arch/ | +16 | 0 replies | |
| 20/28 | s390: Provide atomic_{or,xor,and}arch/ | +33 | 0 replies | |
| 21/28 | x86: Provide atomic_{or,xor,and}arch/ arch/ arch/ | +55 | 0 replies | |
| 22/28 | frv: Rewrite atomic implementationarch/ arch/ arch/ +6 more | +259 | 0 replies | |
| 23/28 | h8300: Provide atomic_{or,xor,and}arch/ | +46 | 0 replies | |
| 24/28 | tile: Provide atomic_{or,xor,and}arch/ arch/ arch/ +1 more | +99 | 0 replies | |
| 25/28 | atomic: Provide atomic_{or,xor,and}arch/ arch/ arch/ +26 more | +19 | 0 replies | |
| 26/28 | atomic: Collapse all atomic_{set,clear}_mask definitionsarch/ arch/ arch/ +13 more | +25 | 0 replies | |
| 27/28 | atomic: Replace atomic_{set,clear}_mask() usagearch/ arch/ arch/ +11 more | +97 | 0 replies | |
| 28/28 | atomic: Add simple atomic_t testslib/ | +47 | 0 replies |
Reviews trailers per patch
6 of 28 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Geert Uytterhoeven | Ralf Baechle | Benjamin Herrenschmidt | David S. Miller | Heiko Carstens | Vineet Gupta | Will Deacon | Richard Kuo |
|---|---|---|---|---|---|---|---|---|
| Series | A-b | A-b | ||||||
| 1/28 | ||||||||
| 2/28 | ||||||||
| 3/28 | A-b | |||||||
| 4/28 | ||||||||
| 5/28 | ||||||||
| 6/28 | ||||||||
| 7/28 | ||||||||
| 8/28 | ||||||||
| 9/28 | ||||||||
| 10/28 | ||||||||
| 11/28 | A-b | |||||||
| 12/28 | ||||||||
| 13/28 | A-b | |||||||
| 14/28 | ||||||||
| 15/28 | ||||||||
| 16/28 | A-b | |||||||
| 17/28 | ||||||||
| 18/28 | A-b | |||||||
| 19/28 | ||||||||
| 20/28 | A-b | |||||||
| 21/28 | ||||||||
| 22/28 | ||||||||
| 23/28 | ||||||||
| 24/28 | ||||||||
| 25/28 | ||||||||
| 26/28 | ||||||||
| 27/28 | ||||||||
| 28/28 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.
Cover letter [PATCH 00/28] arch: Provide atomic logic ops
Currently there is an incoherent mess of atomic_{set,clear}_mask() and atomic_or() (but no atomic_{and,nand,xor}()) in the tree.
Those archs that implement atomic_{set,clear}_mask() are not even consistent on its signature.
Implement atomic_{or,and,xor}() on all archs and deprecate atomic_{set,clear}_mask().
The series has been compile tested by the build-bot, no known failures at this time.
I would like to take this through tip; I'll ask Ingo to put it in a separate branch such that people can pull in that branch if there is conflicting work elsewhere (Will has some for Argh64).
Changes since lst time:
- Quite a few build fails fixed, most notable would be that each arch now defines CONFIG_ARCH_HAS_ATOMIC_OR for a little while -- we take it out again later.
- FRV has some extra magic that allows the inline assembly to correctly work as inline functions.
- TILE patch contributed by Chris -- Thanks!
- A little extention to lib/atomic64_test.c that compile tests the new primitives.
- Alpha, fixed ASM due to fallout from actually trying to compile things.
- H8300, somehow I had overlooked it previously.
- Added atomic_andnot() to a few archs that have that instruction to test that.