projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
827301b
)
use rtl_delay() for rtlinux
author
Frank Mori Hess
<fmhess@speakeasy.net>
Wed, 1 Sep 2004 01:50:25 +0000
(
01:50
+0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Wed, 1 Sep 2004 01:50:25 +0000
(
01:50
+0000)
include/linux/comedi_rt.h
patch
|
blob
|
history
diff --git
a/include/linux/comedi_rt.h
b/include/linux/comedi_rt.h
index e8e9a631cbc861cef1b2a555fdd9267d5f95899d..aa1799227c1e2ee7f191b5736cc3f013af4ac319 100644
(file)
--- a/
include/linux/comedi_rt.h
+++ b/
include/linux/comedi_rt.h
@@
-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