diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-01-17 15:39:13 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-23 01:20:15 -0500 |
commit | f3f14cdff53f4b936e2505d44aad6e3bca143056 (patch) | |
tree | 8d6438132b8ca429758d18142c5f569f60f2bc35 /drivers/gpu/nvgpu/common/pmu/pmu_perfmon.c | |
parent | 193a2ed38ca51d898ac811820ab86237c84e18eb (diff) |
gpu: nvgpu: Fold T19x code back to main code paths
Lots of code paths were split to T19x specific code paths and structs
due to split repository. Now that repositories are merged, fold all of
them back to main code paths and structs and remove the T19x specific
Kconfig flag.
Change-Id: Id0d17a5f0610fc0b49f51ab6664e716dc8b222b6
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1640606
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/pmu/pmu_perfmon.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/pmu/pmu_perfmon.c | 10 |
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 | |||
35 | static u8 get_perfmon_id(struct nvgpu_pmu *pmu) | 31 | static 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); |