]> 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)
commit89d7ab395e966dc8c2f160dcf1ad27e3fca51df8
treede47dcc342acd2f6549a9c1e372282aaaedc61d1
parent7dcc06908ed86c583c0e19bd1ba01b762ab94239
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