From 4e0f3d95d6458fb2ff31ff14f43296b577ac8020 Mon Sep 17 00:00:00 2001 From: Nanxin Qin Date: Wed, 6 Sep 2017 11:10:03 +0800 Subject: [PATCH] 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 --- drivers/amlogic/media/frame_sync/tsync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/amlogic/media/frame_sync/tsync.c b/drivers/amlogic/media/frame_sync/tsync.c index 7498ba7..4f42463 100644 --- a/drivers/amlogic/media/frame_sync/tsync.c +++ b/drivers/amlogic/media/frame_sync/tsync.c @@ -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); } -- 2.7.4