Module: xenomai-2.5
Branch: master
Commit: b0f898b9649e925b740964979a951ac54e046327
URL:    
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=b0f898b9649e925b740964979a951ac54e046327

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun Jan 10 20:59:54 2010 +0100

asm-generic: introduce rthal_irq_descp() supporting 2.6.33 and earlier

---

 include/asm-generic/wrappers.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h
index ae36932..a21ac84 100644
--- a/include/asm-generic/wrappers.h
+++ b/include/asm-generic/wrappers.h
@@ -559,4 +559,10 @@ static inline void wrap_proc_dir_entry_owner(struct 
proc_dir_entry *entry)
 #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) */
 #endif /* CONFIG_PROC_FS */
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)
+#define rthal_irq_descp(irq)   (irq_desc + (irq))
+#else
+#define rthal_irq_descp(irq)   irq_to_desc(irq)
+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33) */
+
 #endif /* _XENO_ASM_GENERIC_WRAPPERS_H */


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to