summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c
index 8c1dbd37..1933eed5 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c
@@ -386,7 +386,7 @@ static ssize_t counters_show(struct device *dev,
386 u32 busy_cycles, total_cycles; 386 u32 busy_cycles, total_cycles;
387 ssize_t res; 387 ssize_t res;
388 388
389 gk20a_pmu_get_load_counters(g, &busy_cycles, &total_cycles); 389 nvgpu_pmu_get_load_counters(g, &busy_cycles, &total_cycles);
390 390
391 res = snprintf(buf, PAGE_SIZE, "%u %u\n", busy_cycles, total_cycles); 391 res = snprintf(buf, PAGE_SIZE, "%u %u\n", busy_cycles, total_cycles);
392 392
@@ -400,7 +400,7 @@ static ssize_t counters_show_reset(struct device *dev,
400 ssize_t res = counters_show(dev, attr, buf); 400 ssize_t res = counters_show(dev, attr, buf);
401 struct gk20a *g = get_gk20a(dev); 401 struct gk20a *g = get_gk20a(dev);
402 402
403 gk20a_pmu_reset_load_counters(g); 403 nvgpu_pmu_reset_load_counters(g);
404 404
405 return res; 405 return res;
406} 406}
@@ -422,8 +422,8 @@ static ssize_t gk20a_load_show(struct device *dev,
422 if (err) 422 if (err)
423 return err; 423 return err;
424 424
425 gk20a_pmu_load_update(g); 425 nvgpu_pmu_load_update(g);
426 gk20a_pmu_load_norm(g, &busy_time); 426 nvgpu_pmu_load_norm(g, &busy_time);
427 gk20a_idle(g); 427 gk20a_idle(g);
428 } 428 }
429 429