mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 02:40:54 +07:00
V4L/DVB (5857): Use msecs_to_jiffies instead of HZ on radio drivers
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
7809b4cba2
commit
a2d66a37c7
@ -63,7 +63,7 @@ struct rt_device
|
||||
static void sleep_delay(long n)
|
||||
{
|
||||
/* Sleep nicely for 'n' uS */
|
||||
int d=n/(1000000/HZ);
|
||||
int d=n/msecs_to_jiffies(1000);
|
||||
if(!d)
|
||||
udelay(n);
|
||||
else
|
||||
|
@ -329,7 +329,7 @@ cadet_handler(unsigned long data)
|
||||
init_timer(&readtimer);
|
||||
readtimer.function=cadet_handler;
|
||||
readtimer.data=(unsigned long)0;
|
||||
readtimer.expires=jiffies+(HZ/20);
|
||||
readtimer.expires=jiffies+msecs_to_jiffies(50);
|
||||
add_timer(&readtimer);
|
||||
}
|
||||
|
||||
@ -349,7 +349,7 @@ cadet_read(struct file *file, char __user *data, size_t count, loff_t *ppos)
|
||||
init_timer(&readtimer);
|
||||
readtimer.function=cadet_handler;
|
||||
readtimer.data=(unsigned long)0;
|
||||
readtimer.expires=jiffies+(HZ/20);
|
||||
readtimer.expires=jiffies+msecs_to_jiffies(50);
|
||||
add_timer(&readtimer);
|
||||
}
|
||||
if(rdsin==rdsout) {
|
||||
|
Loading…
Reference in New Issue
Block a user