summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/pmu/pmu_perfmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/pmu/pmu_perfmon.c')
-rw-r--r--drivers/gpu/nvgpu/common/pmu/pmu_perfmon.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/common/pmu/pmu_perfmon.c b/drivers/gpu/nvgpu/common/pmu/pmu_perfmon.c
index 25d81b60..964b1488 100644
--- a/drivers/gpu/nvgpu/common/pmu/pmu_perfmon.c
+++ b/drivers/gpu/nvgpu/common/pmu/pmu_perfmon.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -28,10 +28,6 @@
28 28
29#include "gk20a/gk20a.h" 29#include "gk20a/gk20a.h"
30 30
31#ifdef CONFIG_TEGRA_19x_GPU
32#include "nvgpu_gpuid_t19x.h"
33#endif
34
35static u8 get_perfmon_id(struct nvgpu_pmu *pmu) 31static u8 get_perfmon_id(struct nvgpu_pmu *pmu)
36{ 32{
37 struct gk20a *g = gk20a_from_pmu(pmu); 33 struct gk20a *g = gk20a_from_pmu(pmu);
@@ -49,11 +45,9 @@ static u8 get_perfmon_id(struct nvgpu_pmu *pmu)
49 case NVGPU_GPUID_GP106: 45 case NVGPU_GPUID_GP106:
50 unit_id = PMU_UNIT_PERFMON_T18X; 46 unit_id = PMU_UNIT_PERFMON_T18X;
51 break; 47 break;
52#if defined(CONFIG_TEGRA_19x_GPU) 48 case NVGPU_GPUID_GV11B:
53 case TEGRA_19x_GPUID:
54 unit_id = PMU_UNIT_PERFMON_T18X; 49 unit_id = PMU_UNIT_PERFMON_T18X;
55 break; 50 break;
56#endif
57 default: 51 default:
58 unit_id = PMU_UNIT_INVALID; 52 unit_id = PMU_UNIT_INVALID;
59 nvgpu_err(g, "no support for %x", ver); 53 nvgpu_err(g, "no support for %x", ver);