Commit b3bc535a authored by Jasmin Jessich's avatar Jasmin Jessich Committed by Mauro Carvalho Chehab

media: Use ktime_set() in pt1.c

In commit 20a63349 a new variable ktime_t delay has been added.
We decided to use the API functions to initialize ktime_t variables
within media-tree. Thus variable delay needs to be initialized with
ktime_set() instead of setting it directly.
Signed-off-by: default avatarJasmin Jessich <jasmin@anw.at>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 06af462b
...@@ -485,7 +485,7 @@ static int pt1_thread(void *data) ...@@ -485,7 +485,7 @@ static int pt1_thread(void *data)
if (!pt1_filter(pt1, page)) { if (!pt1_filter(pt1, page)) {
ktime_t delay; ktime_t delay;
delay = PT1_FETCH_DELAY * NSEC_PER_MSEC; delay = ktime_set(0, PT1_FETCH_DELAY * NSEC_PER_MSEC);
set_current_state(TASK_INTERRUPTIBLE); set_current_state(TASK_INTERRUPTIBLE);
schedule_hrtimeout_range(&delay, schedule_hrtimeout_range(&delay,
PT1_FETCH_DELAY_DELTA * NSEC_PER_MSEC, PT1_FETCH_DELAY_DELTA * NSEC_PER_MSEC,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment