From: Jan Kiszka <jan.kiszka@domain.hid>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] [PATCH] nucleus: Remove xnshadow_relax from taskexit hook
Date: Sun, 08 Mar 2009 12:20:46 +0100 [thread overview]
Message-ID: <49B3AA0E.5020805@domain.hid> (raw)
This is no longer needed as do_exit, the caller of this hook, always
runs in secondary mode. Enforce this assumptions by leaving a XENO_BUGON
behind.
Signed-off-by: Jan Kiszka <jan.kiszka@domain.hid>
---
ksrc/nucleus/shadow.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/ksrc/nucleus/shadow.c b/ksrc/nucleus/shadow.c
index e2f2968..66943ba 100644
--- a/ksrc/nucleus/shadow.c
+++ b/ksrc/nucleus/shadow.c
@@ -2179,12 +2179,11 @@ static inline void do_taskexit_event(struct task_struct *p)
if (!thread)
return;
+ XENO_BUGON(NUCLEUS, xnpod_shadow_p());
+
if (xnthread_test_state(thread, XNDEBUG))
unlock_timers();
- if (xnpod_shadow_p())
- xnshadow_relax(0);
-
magic = xnthread_get_magic(thread);
xnlock_get_irqsave(&nklock, s);
next reply other threads:[~2009-03-08 11:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-08 11:20 Jan Kiszka [this message]
2009-03-09 9:27 ` [Xenomai-core] [PATCH] nucleus: Cleanup taskexit hook Jan Kiszka
2009-03-09 10:24 ` [Xenomai-core] [PATCH v2] " Jan Kiszka
2009-03-09 11:34 ` [Xenomai-core] Xenosim Vandana Sasidharan
2009-03-09 13:23 ` Gilles Chanteperdrix
2009-03-10 3:09 ` Vandana Sasidharan
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=49B3AA0E.5020805@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=rpm@xenomai.org \
--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.