All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] [PATCH] ipipe: Re-fix migration helper for legacy users
@ 2013-01-16 19:17 Jan Kiszka
  2013-01-16 19:53 ` Gilles Chanteperdrix
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Jan Kiszka @ 2013-01-16 19:17 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: Xenomai

In the legacy use case, __ipipe_switch_tail will be invoked over the
non-root domain after hardening. So clearing of TASK_HARDENING must not
be restricted to root.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

For the case my analysis was right. With this, Xenomai 2.6 works again
here.

 kernel/ipipe/core.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/kernel/ipipe/core.c b/kernel/ipipe/core.c
index 6929156..4695ba8 100644
--- a/kernel/ipipe/core.c
+++ b/kernel/ipipe/core.c
@@ -1124,7 +1124,9 @@ int __ipipe_switch_tail(void)
 	hard_local_irq_disable();
 #endif
 	x = __ipipe_root_p;
+#ifndef CONFIG_IPIPE_LEGACY
 	if (x)
+#endif
 		complete_domain_migration();
 
 #ifndef CONFIG_IPIPE_WANT_PREEMPTIBLE_SWITCH
-- 
1.7.3.4


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

end of thread, other threads:[~2013-01-17  9:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-16 19:17 [Xenomai] [PATCH] ipipe: Re-fix migration helper for legacy users Jan Kiszka
2013-01-16 19:53 ` Gilles Chanteperdrix
2013-01-16 20:09   ` Jan Kiszka
2013-01-17  8:26 ` Philippe Gerum
2013-01-17  8:34   ` Jan Kiszka
2013-01-17  8:51     ` Philippe Gerum
2013-01-17  9:12       ` Philippe Gerum
2013-01-17  9:14         ` Jan Kiszka
2013-01-17  9:19           ` Philippe Gerum
2013-01-17  8:28 ` Philippe Gerum

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.