All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [PATCH] nucleus: Remove xnshadow_relax from taskexit hook
@ 2009-03-08 11:20 Jan Kiszka
  2009-03-09  9:27 ` [Xenomai-core] [PATCH] nucleus: Cleanup " Jan Kiszka
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Kiszka @ 2009-03-08 11:20 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai-core

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);


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-03-10  3:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-08 11:20 [Xenomai-core] [PATCH] nucleus: Remove xnshadow_relax from taskexit hook Jan Kiszka
2009-03-09  9:27 ` [Xenomai-core] [PATCH] nucleus: Cleanup " 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

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.