From mboxrd@z Thu Jan 1 00:00:00 1970 Resent-To: xenomai-core Resent-Message-Id: <49466BAA.3040108@domain.hid> From: Jan Kiszka Date: Mon, 15 Dec 2008 15:34:36 +0100 Message-ID: <20081215143436.15493.6001.stgit@domain.hid> In-Reply-To: <20081215143435.15493.94798.stgit@domain.hid> References: <20081215143435.15493.94798.stgit@domain.hid> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Xenomai-core] [PATCH 1/6] Handle priority changes of SCHED_RR tasks List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org If shadowed Linux tasks with SCHED_RR policy change their priority, do_setsched_event currenty ignores this. Extend the condition to catch this case as well. Signed-off-by: Jan Kiszka --- ksrc/nucleus/shadow.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ksrc/nucleus/shadow.c b/ksrc/nucleus/shadow.c index bd3bb3d..9f81c32 100644 --- a/ksrc/nucleus/shadow.c +++ b/ksrc/nucleus/shadow.c @@ -2312,7 +2312,7 @@ 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_RR)) return; /*