* [Xenomai-core] [PATCH 1/2] native: Do not acquire non-existent MPS fastlock
@ 2011-06-30 9:36 Jan Kiszka
0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2011-06-30 9:36 UTC (permalink / raw)
To: Xenomai core
Fix a build warning at this chance as well.
Signed-off-by: Jan Kiszka <jan.kiszka@domain.hid>
---
Applies on top of xenomai-gch.git gch/u_mode
ksrc/skins/native/task.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ksrc/skins/native/task.c b/ksrc/skins/native/task.c
index da4e626..af62d56 100644
--- a/ksrc/skins/native/task.c
+++ b/ksrc/skins/native/task.c
@@ -256,7 +256,9 @@ void __native_task_pkg_cleanup(void)
int rt_task_create(RT_TASK *task,
const char *name, int stksize, int prio, int mode)
{
+#if defined(CONFIG_XENO_OPT_NATIVE_MPS) && defined(CONFIG_XENO_FASTSYNCH)
xnarch_atomic_t *fastlock = NULL;
+#endif
union xnsched_policy_param param;
struct xnthread_init_attr attr;
int err = 0, cpumask, cpu;
@@ -336,8 +338,11 @@ int rt_task_create(RT_TASK *task,
xnheap_free(&xnsys_ppd_get(0)->sem_heap, fastlock);
#endif
xnpod_delete_thread(&task->thread_base);
- } else
+ }
+#if defined(CONFIG_XENO_OPT_NATIVE_MPS) && defined(CONFIG_XENO_FASTSYNCH)
+ else
xnsynch_fast_acquire(fastlock, xnthread_handle(&task->thread_base));
+#endif
return err;
}
--
1.7.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-30 9:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-30 9:36 [Xenomai-core] [PATCH 1/2] native: Do not acquire non-existent MPS fastlock Jan Kiszka
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.