Skip to content

Generic fast xnsynch support & more

Jan Kiszka xenomai 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13Generic thread registrationinclude/nucleus/registry.h include/nucleus/thread.h ksrc/nucleus/thread.c +6 more+102 -800 replies
2/13Handle-based xeno_get_current serviceinclude/asm-generic/bits/bind.h include/asm-generic/bits/current.h include/nucleus/types.h +20 more+206 -880 replies
3/13Remove xnarch_atomic_intptrinclude/asm-arm/atomic.h include/asm-blackfin/atomic.h include/asm-generic/Makefile.am +5 more+2 -370 replies
4/13Spread xeno_set_current under all skinssrc/skins/native/task.c src/skins/psos+/task.c src/skins/uitron/task.c +2 more+44 -110 replies
5/13Factor out xnsynch_acquire/releaseinclude/nucleus/synch.h include/rtdm/rtdm_driver.h ksrc/nucleus/synch.c +10 more+326 -1790 replies
6/13Refactor mutex lockcnt trackingksrc/skins/native/cond.c ksrc/skins/native/mutex.c+4 -100 replies
7/13Lockless fast path for xnsynch_acquire/releaseconfigure.in include/asm-generic/bits/bind.h include/asm-generic/features.h +57 more+313 -1620 replies
8/13Convert POSIX skin to fast xnsynchksrc/skins/posix/cond.c ksrc/skins/posix/mutex.c ksrc/skins/posix/mutex.h +2 more+117 -1980 replies
9/13Use fast xnsynch with native skininclude/native/mutex.h ksrc/skins/native/cond.c ksrc/skins/native/mutex.c +3 more+382 -1520 replies
10/13Optionally replace pthread_getspecific with TLS variablesconfigure.in include/asm-generic/bits/bind.h include/asm-generic/bits/current.h +6 more+156 -400 replies
11/13Report current shadow thread mode to user spaceinclude/asm-generic/bits/bind.h include/asm-generic/bits/current.h include/native/syscall.h +18 more+197 -340 replies
12/13Ensure mode switch in mutex fast pathssrc/skins/native/mutex.c src/skins/posix/mutex.c+71 -540 replies
13/13Catch inconsistent SMP feature supportinclude/asm-generic/features.h+24 -160 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 00/13] Generic fast xnsynch support & more

Hopefully the last round, addressing remarks brought up on the last posting. The changes are:

[Patches 7-9]
- define xnsynch_owner_check as xnsynch-implementation-independent way to check provided and current synch owner match (reduces #ifdefs)

[Patches 6 and 9]
- push lockcnt changes to native mutexes into separate patch (patch

[Patch 2]
- switch creation of xeno_current_key etc. from pthread_once to a constructor
- translate pthread_getspecific == NULL into XN_NO_HANDLE (funnily, this shrinks the code on x86-64)

[Patch 13]
- detect SMP feature inconsistency between kernel and userland (but keep SMP off by default for now)

Note that this series (as well as the latter) depends on the VRTX fix of Philippe which is not yet merged into SVN trunk.

Jan

PS: Hope this series is compatible with more mail clients /wrt commenting on the inlined patches.

--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux