]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: dpu: Simplify frame_done watchdog timeout calculation
authorSean Paul <seanpaul@chromium.org>
Mon, 28 Jan 2019 20:42:49 +0000 (15:42 -0500)
committerRob Clark <robdclark@chromium.org>
Thu, 18 Apr 2019 17:04:09 +0000 (10:04 -0700)
commit865cef8f65d9cec6022aefbe92bae3a93a4b7244
treede47dcc342acd2f6549a9c1e372282aaaedc61d1
parent614f7561bc2de621307302ccac128488c2a28914
drm/msm: dpu: Simplify frame_done watchdog timeout calculation

Instead of setting the timeout and then immediately reading it back
(along with the hand-rolled msecs_to_jiffies calculation), just
calculate it once and set it in both places at the same time.

Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190128204306.95076-2-sean@poorly.run
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c