diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/debug_pmu.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/debug_pmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/debug_pmu.c b/drivers/gpu/nvgpu/common/linux/debug_pmu.c index ec997e28..a8a8870e 100644 --- a/drivers/gpu/nvgpu/common/linux/debug_pmu.c +++ b/drivers/gpu/nvgpu/common/linux/debug_pmu.c | |||
@@ -352,11 +352,11 @@ static ssize_t perfmon_events_enable_write(struct file *file, | |||
352 | if (val && !g->pmu.perfmon_sampling_enabled && | 352 | if (val && !g->pmu.perfmon_sampling_enabled && |
353 | nvgpu_is_enabled(g, NVGPU_PMU_PERFMON)) { | 353 | nvgpu_is_enabled(g, NVGPU_PMU_PERFMON)) { |
354 | g->pmu.perfmon_sampling_enabled = true; | 354 | g->pmu.perfmon_sampling_enabled = true; |
355 | nvgpu_pmu_perfmon_start_sampling(&(g->pmu)); | 355 | g->ops.pmu.pmu_perfmon_start_sampling(&(g->pmu)); |
356 | } else if (!val && g->pmu.perfmon_sampling_enabled && | 356 | } else if (!val && g->pmu.perfmon_sampling_enabled && |
357 | nvgpu_is_enabled(g, NVGPU_PMU_PERFMON)) { | 357 | nvgpu_is_enabled(g, NVGPU_PMU_PERFMON)) { |
358 | g->pmu.perfmon_sampling_enabled = false; | 358 | g->pmu.perfmon_sampling_enabled = false; |
359 | nvgpu_pmu_perfmon_stop_sampling(&(g->pmu)); | 359 | g->ops.pmu.pmu_perfmon_stop_sampling(&(g->pmu)); |
360 | } | 360 | } |
361 | gk20a_idle(g); | 361 | gk20a_idle(g); |
362 | } else { | 362 | } else { |