提交 a2d66a37 编写于 作者: M Mauro Carvalho Chehab

V4L/DVB (5857): Use msecs_to_jiffies instead of HZ on radio drivers

Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 7809b4cb
...@@ -63,7 +63,7 @@ struct rt_device ...@@ -63,7 +63,7 @@ struct rt_device
static void sleep_delay(long n) static void sleep_delay(long n)
{ {
/* Sleep nicely for 'n' uS */ /* Sleep nicely for 'n' uS */
int d=n/(1000000/HZ); int d=n/msecs_to_jiffies(1000);
if(!d) if(!d)
udelay(n); udelay(n);
else else
......
...@@ -329,7 +329,7 @@ cadet_handler(unsigned long data) ...@@ -329,7 +329,7 @@ cadet_handler(unsigned long data)
init_timer(&readtimer); init_timer(&readtimer);
readtimer.function=cadet_handler; readtimer.function=cadet_handler;
readtimer.data=(unsigned long)0; readtimer.data=(unsigned long)0;
readtimer.expires=jiffies+(HZ/20); readtimer.expires=jiffies+msecs_to_jiffies(50);
add_timer(&readtimer); add_timer(&readtimer);
} }
...@@ -349,7 +349,7 @@ cadet_read(struct file *file, char __user *data, size_t count, loff_t *ppos) ...@@ -349,7 +349,7 @@ cadet_read(struct file *file, char __user *data, size_t count, loff_t *ppos)
init_timer(&readtimer); init_timer(&readtimer);
readtimer.function=cadet_handler; readtimer.function=cadet_handler;
readtimer.data=(unsigned long)0; readtimer.data=(unsigned long)0;
readtimer.expires=jiffies+(HZ/20); readtimer.expires=jiffies+msecs_to_jiffies(50);
add_timer(&readtimer); add_timer(&readtimer);
} }
if(rdsin==rdsout) { if(rdsin==rdsout) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册