From: Frank Mori Hess Date: Wed, 1 Sep 2004 01:50:25 +0000 (+0000) Subject: use rtl_delay() for rtlinux X-Git-Tag: r0_7_69~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e75af7214cf7fdb85a216cb66315c4ed060d3a96;p=comedi.git use rtl_delay() for rtlinux --- 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