aboutsummaryrefslogtreecommitdiff
path: root/lib/bitmap.c
diff options
context:
space:
mode:
authorwentalou <[email protected]>2019-04-02 17:13:05 +0800
committerAlex Deucher <[email protected]>2019-04-04 10:22:06 -0500
commit1712fb1a2f6829150032ac76eb0e39b82a549cfb (patch)
tree78822194b681dd076ab52fe2d6289a1e128c47e4 /lib/bitmap.c
parentd4162c61e253177936fcfe6c29f7b224d9a1efb8 (diff)
drm/amdgpu: amdgpu_device_recover_vram always failed if only one node in shadow_list
amdgpu_bo_restore_shadow would assign zero to r if succeeded. r would remain zero if there is only one node in shadow_list. current code would always return failure when r <= 0. restart the timeout for each wait was a rather problematic bug as well. The value of tmo SHOULD be changed, otherwise we wait tmo jiffies on each loop. Signed-off-by: Wentao Lou <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions