use rtl_delay() for rtlinux
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 1 Sep 2004 01:50:25 +0000 (01:50 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 1 Sep 2004 01:50:25 +0000 (01:50 +0000)
include/linux/comedi_rt.h

index e8e9a631cbc861cef1b2a555fdd9267d5f95899d..aa1799227c1e2ee7f191b5736cc3f013af4ac319 100644 (file)
@@ -45,7 +45,7 @@
 #endif
 #ifdef CONFIG_COMEDI_RTL
 #include <rtl_core.h>
-#include <time.h>
+#include <rtl_time.h>
 //#ifdef RTLINUX_VERSION_CODE
 #include <rtl_sync.h>
 //#endif
@@ -133,6 +133,8 @@ static inline void comedi_udelay( unsigned int usec )
 #if defined(CONFIG_COMEDI_RTAI)
        static const int nanosec_per_usec = 1000;
        rt_busy_sleep( usec * nanosec_per_usec );
+#elif defined(CONFIG_COMEDI_RTL)
+       rtl_delay(usec);
 #else
        udelay( usec );
 #endif