diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/dbg_vgpu.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/dbg_vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/dbg_vgpu.c index 90679cc7..11ebe84b 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/dbg_vgpu.c +++ b/drivers/gpu/nvgpu/common/linux/vgpu/dbg_vgpu.c | |||
@@ -17,8 +17,6 @@ | |||
17 | #include <nvgpu/vgpu/vgpu_ivc.h> | 17 | #include <nvgpu/vgpu/vgpu_ivc.h> |
18 | #include <nvgpu/vgpu/tegra_vgpu.h> | 18 | #include <nvgpu/vgpu/tegra_vgpu.h> |
19 | 19 | ||
20 | #include <uapi/linux/nvgpu.h> | ||
21 | |||
22 | #include "gk20a/gk20a.h" | 20 | #include "gk20a/gk20a.h" |
23 | #include "gk20a/channel_gk20a.h" | 21 | #include "gk20a/channel_gk20a.h" |
24 | #include "gk20a/dbg_gpu_gk20a.h" | 22 | #include "gk20a/dbg_gpu_gk20a.h" |
@@ -87,12 +85,12 @@ int vgpu_dbg_set_powergate(struct dbg_session_gk20a *dbg_s, bool disable_powerga | |||
87 | if (dbg_s->is_pg_disabled) | 85 | if (dbg_s->is_pg_disabled) |
88 | return 0; | 86 | return 0; |
89 | dbg_s->is_pg_disabled = true; | 87 | dbg_s->is_pg_disabled = true; |
90 | mode = NVGPU_DBG_GPU_POWERGATE_MODE_DISABLE; | 88 | mode = TEGRA_VGPU_POWERGATE_MODE_DISABLE; |
91 | } else { | 89 | } else { |
92 | if (!dbg_s->is_pg_disabled) | 90 | if (!dbg_s->is_pg_disabled) |
93 | return 0; | 91 | return 0; |
94 | dbg_s->is_pg_disabled = false; | 92 | dbg_s->is_pg_disabled = false; |
95 | mode = NVGPU_DBG_GPU_POWERGATE_MODE_ENABLE; | 93 | mode = TEGRA_VGPU_POWERGATE_MODE_ENABLE; |
96 | } | 94 | } |
97 | 95 | ||
98 | msg.cmd = TEGRA_VGPU_CMD_SET_POWERGATE; | 96 | msg.cmd = TEGRA_VGPU_CMD_SET_POWERGATE; |