diff options
author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2018-08-04 08:01:02 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-08-27 11:10:02 -0500 |
commit | 4b991c54ce82e85d89babcf32d72746365163ed5 (patch) | |
tree | 8ec334782df410bf5cfdacdca49e6b83f545e05a /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | 2f2debb5a162ea9aeb03ad2532827631e3a68b1a (diff) |
gpu: drm: radeon: radeon_test: Replace mdelay() with msleep()
radeon_test_ring_sync() and radeon_test_ring_sync2() are never
called in atomic context.
They call mdelay() to busily wait, which is not necessary.
mdelay() can be replaced with msleep().
This is found by a static analysis tool named DCNS written by myself.
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
0 files changed, 0 insertions, 0 deletions