Module: xenomai-2.5 Branch: master Commit: 1e5ba844d39af12dfcb3d0646608a568a746880c URL: http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=1e5ba844d39af12dfcb3d0646608a568a746880c
Author: Philippe Gerum <[email protected]> Date: Thu Feb 3 11:47:50 2011 +0100 nucleus/shadow: use DEFINE_SEMAPHORE instead of deprecated DECLARE_MUTEX --- include/asm-generic/wrappers.h | 1 + ksrc/nucleus/shadow.c | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h index ad056ca..81c722c 100644 --- a/include/asm-generic/wrappers.h +++ b/include/asm-generic/wrappers.h @@ -607,6 +607,7 @@ static inline void wrap_proc_dir_entry_owner(struct proc_dir_entry *entry) #ifndef DECLARE_MUTEX /* Legacy DECLARE_MUTEX vanished in 2.6.37 */ #define DECLARE_MUTEX(sem) DEFINE_SEMAPHORE(sem) +#define init_MUTEX(sem) sema_init((sem), 1) #endif #endif /* _XENO_ASM_GENERIC_WRAPPERS_H */ diff --git a/ksrc/nucleus/shadow.c b/ksrc/nucleus/shadow.c index 33110f4..d8d7116 100644 --- a/ksrc/nucleus/shadow.c +++ b/ksrc/nucleus/shadow.c @@ -100,7 +100,7 @@ static struct task_struct *switch_lock_owner[XNARCH_NR_CPUS]; static int nucleus_muxid = -1; -static DECLARE_MUTEX(completion_mutex); +static DEFINE_SEMAPHORE(completion_mutex); static inline struct task_struct *get_switch_lock_owner(void) { _______________________________________________ Xenomai-git mailing list [email protected] https://mail.gna.org/listinfo/xenomai-git
