Module: xenomai-rpm Branch: for-upstream Commit: 1e097ade394de8f9f0f8fe8a2862c504f3eaeecc URL: http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=1e097ade394de8f9f0f8fe8a2862c504f3eaeecc
Author: Philippe Gerum <r...@xenomai.org> Date: Thu Apr 7 16:23:48 2011 +0200 nucleus: remove useless linux_semaphore type wrapper --- include/asm-generic/bits/pod.h | 2 +- include/nucleus/sched.h | 2 +- include/nucleus/types.h | 5 ----- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/include/asm-generic/bits/pod.h b/include/asm-generic/bits/pod.h index f35703c..18edee6 100644 --- a/include/asm-generic/bits/pod.h +++ b/include/asm-generic/bits/pod.h @@ -174,7 +174,7 @@ static inline int xnarch_release_ipi (void) IPIPE_PASS_MASK); } -static struct linux_semaphore xnarch_finalize_sync; +static struct semaphore xnarch_finalize_sync; static void xnarch_finalize_cpu(unsigned irq) { diff --git a/include/nucleus/sched.h b/include/nucleus/sched.h index de57902..e69094a 100644 --- a/include/nucleus/sched.h +++ b/include/nucleus/sched.h @@ -111,7 +111,7 @@ typedef struct xnsched { #ifdef CONFIG_XENO_OPT_PERVASIVE struct task_struct *gatekeeper; wait_queue_head_t gkwaitq; - struct linux_semaphore gksync; + struct semaphore gksync; struct xnthread *gktarget; #endif diff --git a/include/nucleus/types.h b/include/nucleus/types.h index 8089d5e..1f028d4 100644 --- a/include/nucleus/types.h +++ b/include/nucleus/types.h @@ -22,11 +22,6 @@ #ifdef __KERNEL__ #include <linux/errno.h> -#ifdef CONFIG_PREEMPT_RT -#define linux_semaphore compat_semaphore -#else /* CONFIG_PREEMPT_RT */ -#define linux_semaphore semaphore -#endif /* !CONFIG_PREEMPT_RT */ #else /* !__KERNEL__ */ #include <stdio.h> #include <string.h> _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git