use asm() for atomic_{read|set}
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | i386: use asm() like the other atomic operations already do.include/ | +21 | 10 replies | |
| 2/2 | x86_64: use asm() like the other atomic operations already do.include/ | +39 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [patch 0/2] use asm() for atomic_{read|set}
I converted i386+x86-64. Compiled, booted and played for a while. The description of both patches contains the file size of four kernel builds:
- "normal" is 28e8351ac22de25034e048c680014ad824323c65 as it
- "inline asm" is with this patch
- "inline volatile" is *(volatile int *)&(v)->counter as a static inline function
- "volatile" is *(volatile int *)&(v)->counter as a #define macro
I hope I don't encourage anyone to use macros over inline functions.
Sebastian