diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/pmu/pmu_ipc.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/pmu/pmu_ipc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/pmu/pmu_ipc.c b/drivers/gpu/nvgpu/common/pmu/pmu_ipc.c index 352e525f..0dbc2df3 100644 --- a/drivers/gpu/nvgpu/common/pmu/pmu_ipc.c +++ b/drivers/gpu/nvgpu/common/pmu/pmu_ipc.c | |||
@@ -11,6 +11,7 @@ | |||
11 | * more details. | 11 | * more details. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <nvgpu/enabled.h> | ||
14 | #include <nvgpu/pmu.h> | 15 | #include <nvgpu/pmu.h> |
15 | #include <nvgpu/log.h> | 16 | #include <nvgpu/log.h> |
16 | #include <nvgpu/pmuif/nvgpu_gpmu_cmdif.h> | 17 | #include <nvgpu/pmuif/nvgpu_gpmu_cmdif.h> |
@@ -844,7 +845,8 @@ int nvgpu_pmu_process_message(struct nvgpu_pmu *pmu) | |||
844 | nvgpu_pmu_process_init_msg(pmu, &msg); | 845 | nvgpu_pmu_process_init_msg(pmu, &msg); |
845 | if (g->ops.pmu.init_wpr_region != NULL) | 846 | if (g->ops.pmu.init_wpr_region != NULL) |
846 | g->ops.pmu.init_wpr_region(g); | 847 | g->ops.pmu.init_wpr_region(g); |
847 | nvgpu_pmu_init_perfmon(pmu); | 848 | if (nvgpu_is_enabled(g, NVGPU_PMU_PERFMON)) |
849 | nvgpu_pmu_init_perfmon(pmu); | ||
848 | 850 | ||
849 | return 0; | 851 | return 0; |
850 | } | 852 | } |