]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit2e0391865bd71e076139ca8059bf68469012c27a
treede47dcc342acd2f6549a9c1e372282aaaedc61d1
parent6117f86202720cae2397dfcba7acf374cde3c6c9
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