From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] Policy switching and XNOTHER maintenance
Date: Sun, 18 Sep 2011 17:47:58 +0200 [thread overview]
Message-ID: <4E7612AE.8000900@domain.hid> (raw)
In-Reply-To: <4E760D20.9040802@domain.hid>
On 09/18/2011 05:24 PM, Jan Kiszka wrote:
> On 2011-09-18 17:18, Gilles Chanteperdrix wrote:
>> What about:
>>
>> diff --git a/ksrc/nucleus/shadow.c b/ksrc/nucleus/shadow.c
>> index 21cc191..7fe44a1 100644
>> --- a/ksrc/nucleus/shadow.c
>> +++ b/ksrc/nucleus/shadow.c
>> @@ -2756,9 +2756,12 @@ static inline void do_setsched_event(struct task_struct *p, int priority)
>> union xnsched_policy_param param;
>> struct xnsched *sched;
>>
>> - if (!thread || p->policy != SCHED_FIFO)
>> + if (!thread || (p->policy != SCHED_FIFO && p->policy != SCHED_OTHER))
>> return;
>>
>> + if (p->policy == SCHED_OTHER)
>> + priority = 0;
>> +
>> /*
>> * Linux's priority scale is a subset of the core pod's
>> * priority scale, so there is no need to bound the priority
>
> No other policies can be issued against the Linux part of a shadow? Then
> it's OK. I just don't recall the details here ATM.
>
> Jan
>
This should be OK, according to the comment:
* BIG FAT WARNING: Change of scheduling parameters from the
* Linux side are propagated only to threads that belong to
* the Xenomai RT scheduling class. Threads from other classes
* are remain unaffected, since we could not map this
* information 1:1 between Linux and Xenomai.
*/
--
Gilles.
prev parent reply other threads:[~2011-09-18 15:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-11 10:50 [Xenomai-core] Policy switching and XNOTHER maintenance Jan Kiszka
2011-09-11 11:49 ` Jan Kiszka
2011-09-11 14:24 ` Gilles Chanteperdrix
2011-09-11 14:29 ` Jan Kiszka
2011-09-16 20:13 ` Gilles Chanteperdrix
2011-09-16 20:39 ` Gilles Chanteperdrix
2011-09-18 14:02 ` Philippe Gerum
2011-09-18 14:34 ` Jan Kiszka
2011-09-18 15:10 ` Philippe Gerum
2011-09-18 15:11 ` Jan Kiszka
2011-09-18 15:13 ` Jan Kiszka
2011-09-18 15:18 ` Gilles Chanteperdrix
2011-09-18 15:24 ` Jan Kiszka
2011-09-18 15:47 ` Gilles Chanteperdrix [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E7612AE.8000900@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=jan.kiszka@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.