]> 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:10:51 +0000 (04:10 -0800)
commit3b4d899d823ce84acdea12c1e597944dd89a72bd
tree3ae989328cf1580ccdbb3c958cfb6da28f253553
parent668ee1a95298c39494808e1476ea101e0fd5c340
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