Module: xenomai-jki
Branch: for-forge
Commit: bccc2f87edd862d0f672dd85e36a6ebb495aad21
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=bccc2f87edd862d0f672dd85e36a6ebb495aad21

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Tue Mar  8 18:46:32 2016 +0100

lib/cobalt: Do not synchronize Linux scheduling parameters in userspace

The kernel is not doing this task. Dropping this code enables parameter
updates without mode switches.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 lib/cobalt/thread.c |   12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/lib/cobalt/thread.c b/lib/cobalt/thread.c
index 567972d..674d08d 100644
--- a/lib/cobalt/thread.c
+++ b/lib/cobalt/thread.c
@@ -648,19 +648,9 @@ COBALT_IMPL(int, pthread_setschedparam, (pthread_t thread,
 int pthread_setschedparam_ex(pthread_t thread,
                             int policy, const struct sched_param_ex *param_ex)
 {
-       int ret, promoted, std_policy;
-       struct sched_param std_param;
+       int ret, promoted;
        __u32 u_winoff;
 
-       /*
-        * First we tell the libc and the regular kernel about the
-        * policy/param change, then we tell Xenomai.
-        */
-       std_policy = cobalt_xlate_schedparam(policy, param_ex, &std_param);
-       ret = __STD(pthread_setschedparam(thread, std_policy, &std_param));
-       if (ret)
-               return ret;
-
        ret = -XENOMAI_SYSCALL5(sc_cobalt_thread_setschedparam_ex,
                                thread, policy, param_ex,
                                &u_winoff, &promoted);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to