Skip to content

Rework pthread_setschedprio support

Jan Kiszka xenomai 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 0 repliesNew
  2. v15 patches 1 replySuperseded

Changes in v2 from the cover letter

- account for !CONFIG_XENO_LAZY_SETSCHED in setsched test
- split smokey changes into two patches
- enable lazy-setsched in debian package

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7cobalt/posix/thread: Factor out thread_lookup_or_shadowkernel/cobalt/posix/thread.c+26 -120 replies
2/7cobalt/posix: Add thread_setschedprioinclude/cobalt/uapi/syscall.h kernel/cobalt/arch/x86/include/asm/xenomai/syscall32-table.h kernel/cobalt/posix/syscall32.c +4 more+80 -00 replies
3/7lib/cobalt: Use new thread_setschedprio syscalllib/cobalt/thread.c+29 -40 replies
4/7Revert "cobalt/kernel: Introduce __SCHED_CURRENT policy to setschedparam_ex"include/cobalt/uapi/sched.h kernel/cobalt/posix/thread.c kernel/cobalt/trace/cobalt-posix.h+1 -150 replies
5/7testsuite/smokey: Fix setsched /wrt lazy scheduling parameter applicationtestsuite/smokey/setsched/setsched.c+9 -10 replies
6/7testsuite/smokey: Add pthread_setschedprio to setsched test casetestsuite/smokey/setsched/setsched.c+21 -00 replies
7/7debian: Enable lazy-setsched in userspace packagedebian/rules+1 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/7] Rework pthread_setschedprio support

It turned out just in time that the __CURRENT_SCHED-approach is broken and not reasonably fixable. This introduces a separate syscall for implementing that posix function.

Changes in v2:
- account for !CONFIG_XENO_LAZY_SETSCHED in setsched test
- split smokey changes into two patches
- enable lazy-setsched in debian package

Jan

Jan Kiszka (7):
cobalt/posix/thread: Factor out thread_lookup_or_shadow cobalt/posix: Add thread_setschedprio
lib/cobalt: Use new thread_setschedprio syscall Revert "cobalt/kernel: Introduce __SCHED_CURRENT policy to
setschedparam_ex"
testsuite/smokey: Fix setsched /wrt lazy scheduling parameter
application
testsuite/smokey: Add pthread_setschedprio to setsched test case
debian: Enable lazy-setsched in userspace package

 debian/rules                                       |  1 +
 include/cobalt/uapi/sched.h                        |  3 -
 include/cobalt/uapi/syscall.h                      |  1 +
 .../arch/x86/include/asm/xenomai/syscall32-table.h |  1 +
 kernel/cobalt/posix/syscall32.c                    |  9 +++
 kernel/cobalt/posix/syscall32.h                    |  6 ++
 kernel/cobalt/posix/thread.c                       | 85 ++++++++++++++++------
 kernel/cobalt/posix/thread.h                       | 11 +++
 kernel/cobalt/trace/cobalt-posix.h                 | 18 ++++-
 lib/cobalt/thread.c                                | 33 ++++++++-
 testsuite/smokey/setsched/setsched.c               | 31 +++++++-
 11 files changed, 167 insertions(+), 32 deletions(-)
Signature · 1 line
2.16.4