diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/module.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c index 80c516a6..7c7cc714 100644 --- a/drivers/gpu/nvgpu/common/linux/module.c +++ b/drivers/gpu/nvgpu/common/linux/module.c | |||
@@ -337,12 +337,12 @@ int __gk20a_do_idle(struct gk20a *g, bool force_reset) | |||
337 | 337 | ||
338 | /* check and wait until GPU is idle (with a timeout) */ | 338 | /* check and wait until GPU is idle (with a timeout) */ |
339 | do { | 339 | do { |
340 | nvgpu_msleep(1); | 340 | nvgpu_usleep_range(1000, 1100); |
341 | ref_cnt = atomic_read(&dev->power.usage_count); | 341 | ref_cnt = atomic_read(&dev->power.usage_count); |
342 | } while (ref_cnt != target_ref_cnt && !nvgpu_timeout_expired(&timeout)); | 342 | } while (ref_cnt != target_ref_cnt && !nvgpu_timeout_expired(&timeout)); |
343 | 343 | ||
344 | if (ref_cnt != target_ref_cnt) { | 344 | if (ref_cnt != target_ref_cnt) { |
345 | nvgpu_err(g, "failed to idle - refcount %d != 1", | 345 | nvgpu_err(g, "failed to idle - refcount %d != target_ref_cnt", |
346 | ref_cnt); | 346 | ref_cnt); |
347 | goto fail_drop_usage_count; | 347 | goto fail_drop_usage_count; |
348 | } | 348 | } |
@@ -367,7 +367,7 @@ int __gk20a_do_idle(struct gk20a *g, bool force_reset) | |||
367 | 367 | ||
368 | /* check in loop if GPU is railgated or not */ | 368 | /* check in loop if GPU is railgated or not */ |
369 | do { | 369 | do { |
370 | nvgpu_msleep(1); | 370 | nvgpu_usleep_range(1000, 1100); |
371 | is_railgated = platform->is_railgated(dev); | 371 | is_railgated = platform->is_railgated(dev); |
372 | } while (!is_railgated && !nvgpu_timeout_expired(&timeout)); | 372 | } while (!is_railgated && !nvgpu_timeout_expired(&timeout)); |
373 | 373 | ||