From e75af7214cf7fdb85a216cb66315c4ed060d3a96 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Wed, 1 Sep 2004 01:50:25 +0000 Subject: [PATCH] use rtl_delay() for rtlinux --- include/linux/comedi_rt.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/comedi_rt.h b/include/linux/comedi_rt.h index e8e9a631..aa179922 100644 --- a/include/linux/comedi_rt.h +++ b/include/linux/comedi_rt.h @@ -45,7 +45,7 @@ #endif #ifdef CONFIG_COMEDI_RTL #include -#include +#include //#ifdef RTLINUX_VERSION_CODE #include //#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 -- 2.26.2