]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/display: use msleep rather than udelay for long delays
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Jan 2022 17:57:33 +0000 (12:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jan 2022 22:50:49 +0000 (17:50 -0500)
commiteadce36346f95db91b1bd8bfad572dd82961ca2a
treed826c621e6f6fcaecefe3f8cf25bd28d2214e9fd
parent675540631a3dd8bbb9a43f55a9cc187d629158c5
drm/amdgpu/display: use msleep rather than udelay for long delays

Some architectures (e.g., ARM) throw an compilation error if the
udelay is too long.  In general udelays of longer than 2000us are
not recommended on any architecture.  Switch to msleep in these
cases.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c