Wire up lockless lockrefs for ARM
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest3 patches 0 repliesNew
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | ARM: cmpxchg: implement barrier-less cmpxchg64_localarch/ | +42 | 0 replies | |
| 2/3 | ARM: cmpxchg: implement cmpxchg64_relaxedarch/ | +3 | 0 replies | |
| 3/3 | ARM: lockref: add support for lockless lockrefs using cmpxchg64arch/ arch/ | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/3] Wire up lockless lockrefs for ARM
Hello,
This is version two of the patch I originally posted here:
http://lists.infradead.org/pipermail/linux-arm-kernel/2013-September/200109.html
The main changes since then are:
* Separate cmpxchg64 from atomic64_cmpxchg, so we can implement a barrier-less version.
* Use this new barrier-less function to implement cmpxchg64_relaxed
* Finally, use cmpxchg64_relaxed to optimise cmpxchg64_local and implement lockless lockrefs.
This results in ~100% improvement when running Linus's t.c test (essentially stating a file in a loop for 10 seconds).
Feedback welcome,
Will
Will Deacon (3):
ARM: cmpxchg: implement barrier-less cmpxchg64_local
ARM: cmpxchg: implement cmpxchg64_relaxed
ARM: lockref: add support for lockless lockrefs using cmpxchg64
arch/arm/Kconfig | 1 + arch/arm/include/asm/cmpxchg.h | 58 ++++++++++++++++++++++++++++++++--------- arch/arm/include/asm/spinlock.h | 8 ++++-- 3 files changed, 53 insertions(+), 14 deletions(-)
Signature · 1 line
1.8.2.2