[Xenomai-core] rt_task_set_priority vs. Linux priority

2008-10-02 Thread Jan Kiszka
Quick question $customer stumbled over: Shouldn't the user space part of rt_task_set_priority also (or rather?) adjust the Linux priority of the caller? My impression is yes. Actually, translating the native priority to sched_setscheduler parameters and calling that service would be better, no? Ja

Re: [Xenomai-core] rt_task_set_priority vs. Linux priority

2008-10-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Quick question $customer stumbled over: Shouldn't the user space part of > rt_task_set_priority also (or rather?) adjust the Linux priority of the > caller? My impression is yes. Actually, translating the native priority > to sched_setscheduler parameters and calling that servic

Re: [Xenomai-core] rt_task_set_priority vs. Linux priority

2008-10-02 Thread Gilles Chanteperdrix
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Quick question $customer stumbled over: Shouldn't the user space part of >> rt_task_set_priority also (or rather?) adjust the Linux priority of the >> caller? My impression is yes. Actually, translating the native priority >> to sched_setscheduler

Re: [Xenomai-core] rt_task_set_priority vs. Linux priority

2008-10-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Quick question $customer stumbled over: Shouldn't the user space part of >> rt_task_set_priority also (or rather?) adjust the Linux priority of the >> caller? My impression is yes. Actually, translating the native priority >> to sched_setscheduler

Re: [Xenomai-core] rt_task_set_priority vs. Linux priority

2008-10-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Quick question $customer stumbled over: Shouldn't the user space part of >>> rt_task_set_priority also (or rather?) adjust the Linux priority of the >>> caller? My impression is yes. Actually, translating the native priority >

Re: [Xenomai-core] rt_task_set_priority vs. Linux priority

2008-10-02 Thread Philippe Gerum
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Quick question $customer stumbled over: Shouldn't the user space part of >> rt_task_set_priority also (or rather?) adjust the Linux priority of the >> caller? My impression is yes. Actually, translating the native priority >> to sched_setscheduler

Re: [Xenomai-core] rt_task_set_priority vs. Linux priority

2008-10-02 Thread Gilles Chanteperdrix
Philippe Gerum wrote: > AFAIC, I don't see how changing priorities on the fly within a time critical > section could be considered as good programming practice; this would tend to > indicate that somebody is playing with priorities to paper over an application > design issue. So, you mean PIP pape

Re: [Xenomai-core] rt_task_set_priority vs. Linux priority

2008-10-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Quick question $customer stumbled over: Shouldn't the user space part of rt_task_set_priority also (or rather?) adjust the Linux priority of the caller? My impression is yes. Actually

Re: [Xenomai-core] rt_task_set_priority vs. Linux priority

2008-10-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Philippe Gerum wrote: >> AFAIC, I don't see how changing priorities on the fly within a time critical >> section could be considered as good programming practice; this would tend to >> indicate that somebody is playing with priorities to paper over an >> application >

Re: [Xenomai-core] rt_task_set_priority vs. Linux priority

2008-10-02 Thread Jan Kiszka
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Philippe Gerum wrote: >>> AFAIC, I don't see how changing priorities on the fly within a time critical >>> section could be considered as good programming practice; this would tend to >>> indicate that somebody is playing with priorities to paper o

Re: [Xenomai-core] rt_task_set_priority vs. Linux priority

2008-10-02 Thread Philippe Gerum
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Gilles Chanteperdrix wrote: Jan Kiszka wrote: > Quick question $customer stumbled over: Shouldn't the user space part of > rt_task_set_priority also (or rather?) adjust the Linux priority of the > caller? My i

Re: [Xenomai-core] rt_task_set_priority vs. Linux priority

2008-10-02 Thread Gilles Chanteperdrix
Philippe Gerum wrote: > Jan Kiszka wrote: >> So we should warn the user (in the doc) that rt_task_set_priority will >> leave an inconsistent priority distribution between Linux and Xenomai >> behind? But what is that propagation path in xnpod_renice_thread_inner >> good for then? >> > > A failed a

Re: [Xenomai-core] rt_task_set_priority vs. Linux priority

2008-10-02 Thread Philippe Gerum
Gilles Chanteperdrix wrote: > Philippe Gerum wrote: >> AFAIC, I don't see how changing priorities on the fly within a time critical >> section could be considered as good programming practice; this would tend to >> indicate that somebody is playing with priorities to paper over an >> application >

Re: [Xenomai-core] rt_task_set_priority vs. Linux priority

2008-10-02 Thread Philippe Gerum
Gilles Chanteperdrix wrote: > Philippe Gerum wrote: >> Jan Kiszka wrote: >>> So we should warn the user (in the doc) that rt_task_set_priority will >>> leave an inconsistent priority distribution between Linux and Xenomai >>> behind? But what is that propagation path in xnpod_renice_thread_inner >>