From 672eca81c9df1007941742012f7ecddb19d2a91e Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 3 May 2001 16:24:20 +0000 Subject: [PATCH] added some comments on what look like bugs --- comedi/drivers/comedi_rt_timer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/comedi/drivers/comedi_rt_timer.c b/comedi/drivers/comedi_rt_timer.c index 9d31a18c..53bcdf11 100644 --- a/comedi/drivers/comedi_rt_timer.c +++ b/comedi/drivers/comedi_rt_timer.c @@ -238,13 +238,16 @@ static int timer_cmd(comedi_device *dev,comedi_subdevice *s) ts.tv_nsec=cmd->scan_begin_arg; #ifdef CONFIG_COMEDI_RTL + // XXX timespec_to_RTIME() is undeclared (and undefined?) compiling against rtl3.0 - FMH period=timespec_to_RTIME(ts); rt_task_init(&devpriv->rt_task,timer_ai_task_func,(int)dev,3000,4); #endif #ifdef CONFIG_COMEDI_RTAI period = start_rt_timer(nano2count(cmd->scan_begin_arg)); + // XXX line repeated a few lines down? - FMH now = rt_get_time(); rt_task_init(&devpriv->rt_task,timer_ai_task_func,(int)dev,3000,0,0,0); + // XXX line repeated a few lines down? - FMH rt_task_make_periodic(&devpriv->rt_task,now+period,period); #endif -- 2.26.2