removed some obsolete #defines
authorFrank Mori Hess <fmhess@speakeasy.net>
Tue, 14 Jun 2005 00:49:51 +0000 (00:49 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Tue, 14 Jun 2005 00:49:51 +0000 (00:49 +0000)
comedi/rt.c

index 1cdd606ce14671ae85a03cfb7f9533440baf2925..99de9163d428b8e58459d8d7fad96bdf1562a81e 100644 (file)
 
 #ifdef CONFIG_COMEDI_RTAI
 #include <rtai.h>
-
-#define RT_protect()   hard_cli()
-#define RT_unprotect() hard_sti()
-#define RT_spin_lock_irq(x)    rt_spin_lock_irq(x)
-#define RT_spin_unlock_irq(x)  rt_spin_unlock_irq(x)
 #endif
 
 #ifdef CONFIG_COMEDI_FUSION
 #ifdef CONFIG_COMEDI_RTL
 #include <rtl_core.h>
 #include <rtl_sync.h>
-
-#define RT_protect()   rtl_make_rt_system_active()
-#define RT_unprotect() rtl_make_rt_system_idle()
-/* RTL doesn't have the necessary primitives, so we have to hack
- * it, dealing with the race */
-#define RT_spin_lock_irq(x)    do{RT_protect();rtl_spin_lock(x);}while(0)
-#define RT_spin_unlock_irq(x)  do{rtl_spin_unlock(x);RT_unprotect();}while(0)
-#endif
-
-#ifdef CONFIG_PRIORITY_IRQ
-#define RT_protect()   __local_irq_disable()
-#define RT_unprotect() __local_irq_enable()
-#define RT_spin_lock_irq(x)    spin_lock_hard_irq(x)
-#define RT_spin_unlock_irq(x)  spin_unlock_hard_irq(x)
 #endif
 
 struct comedi_irq_struct {