frame_sync: replace the magic number with msecs_to_jiffies.

PD#150542: replace the magic number with msecs_to_jiffies.

Change-Id: I071da655a9ea3edf496fca65dc67167145ccc167
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
This commit is contained in:
Nanxin Qin
2017-09-06 11:10:03 +08:00
committed by Jianxin Pan
parent c7d74f200d
commit 4e0f3d95d6

View File

@@ -647,7 +647,7 @@ static void tsync_state_switch_timer_fun(unsigned long arg)
tsync_av_dynamic_timeout_ms =
jiffies_ms + tsync_av_dynamic_duration_ms;
}
tsync_state_switch_timer.expires = jiffies + 20;
tsync_state_switch_timer.expires = jiffies + msecs_to_jiffies(200);
add_timer(&tsync_state_switch_timer);
}
@@ -1161,7 +1161,7 @@ void tsync_init(void)
init_timer(&tsync_state_switch_timer);
tsync_state_switch_timer.function = tsync_state_switch_timer_fun;
tsync_state_switch_timer.expires = jiffies + 1;
tsync_state_switch_timer.expires = jiffies + msecs_to_jiffies(10);
add_timer(&tsync_state_switch_timer);
}