Skip to content

Fixes and improvements around xnlock

Jan Kiszka xenomai 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Refactor generic system.hinclude/asm-generic/system.h+204 -2085 replies
2/4Fix and optimize xnlock_putinclude/asm-generic/system.h+19 -196 replies
3/4Uninline heavy locking functionsinclude/asm-generic/bits/pod.h include/asm-generic/system.h+26 -205 replies
4/4Recursive FIFO ticket xnlockinclude/asm-generic/system.h ksrc/nucleus/Kconfig+112 -104 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Xenomai-core] [PATCH 0/4] Fixes and improvements around xnlock

Hi,

I'm happy to announce a patch series which actually started like "hey, let's check if we can have this nice FIFO ticket spinlock algorithm also for our recursive xnlock." The result is a critical bug fix and a massive text size reduction of nucleus and skins, both concerning SMP systems. Furthermore, there are now optional ticket locks available for larger SMP boxes. :)

This series consists of

1. Refactoring of asm-generic/system.h
(+ some optimization of xnlock_get)

2. SMP-critical memory barrier fix for xnlock_put (+ optimization for production code)

3. Uninlining of xnlock_get_irqsave/xnlock_put_irqrestore on SMP

    (xeno_nucleus text, x86-64, non-debug: 112482 -> 79453 bytes!)

4. Optional FIFO ticket spinlock for strict deterministic spin times on xnlocks (still highly experimental!)

The second patch is stable stuff, so we should merge 1+2 into 2.4.x as well.

Jan