]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/msm: Avoid rounding up to one jiffy
authorRob Clark <robdclark@chromium.org>
Mon, 13 Jan 2025 15:48:41 +0000 (07:48 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2025 12:30:20 +0000 (04:30 -0800)
commit45bb1eaa0e28783863176b7e034231aae5e546c8
tree29c59b2bcec9064151b63e7b43d511dcd0506c2a
parentf5d5e8165aee90761d3991a40a516cd2deed8146
drm/msm: Avoid rounding up to one jiffy

[ Upstream commit 669c285620231786fffe9d87ab432e08a6ed922b ]

If userspace is trying to achieve a timeout of zero, let 'em have it.
Only round up if the timeout is greater than zero.

Fixes: 4969bccd5f4e ("drm/msm: Avoid rounding down to zero jiffies")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Akhil P Oommen <quic_akhilpo@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/632264/
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/msm_drv.h