summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index c50d800f..550b22c0 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -373,13 +373,13 @@ int gk20a_wait_for_idle(struct gk20a *g)
373 if (g->user_railgate_disabled) 373 if (g->user_railgate_disabled)
374 target_usage_count = 1; 374 target_usage_count = 1;
375 375
376 while ((atomic_read(&g->usage_count) != target_usage_count) 376 while ((nvgpu_atomic_read(&g->usage_count) != target_usage_count)
377 && (wait_length-- >= 0)) 377 && (wait_length-- >= 0))
378 nvgpu_msleep(20); 378 nvgpu_msleep(20);
379 379
380 if (wait_length < 0) { 380 if (wait_length < 0) {
381 pr_warn("%s: Timed out waiting for idle (%d)!\n", 381 pr_warn("%s: Timed out waiting for idle (%d)!\n",
382 __func__, atomic_read(&g->usage_count)); 382 __func__, nvgpu_atomic_read(&g->usage_count));
383 return -ETIMEDOUT; 383 return -ETIMEDOUT;
384 } 384 }
385 385