diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c index 257c04b2..12e3a297 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | |||
@@ -1128,8 +1128,6 @@ static int nvgpu_gpu_clk_set_info(struct gk20a *g, | |||
1128 | if (!session || args->flags) | 1128 | if (!session || args->flags) |
1129 | return -EINVAL; | 1129 | return -EINVAL; |
1130 | 1130 | ||
1131 | gk20a_dbg_info("line=%d", __LINE__); | ||
1132 | |||
1133 | clk_domains = nvgpu_clk_arb_get_arbiter_clk_domains(g); | 1131 | clk_domains = nvgpu_clk_arb_get_arbiter_clk_domains(g); |
1134 | if (!clk_domains) | 1132 | if (!clk_domains) |
1135 | return -EINVAL; | 1133 | return -EINVAL; |
@@ -1137,16 +1135,11 @@ static int nvgpu_gpu_clk_set_info(struct gk20a *g, | |||
1137 | entry = (struct nvgpu_gpu_clk_info __user *) | 1135 | entry = (struct nvgpu_gpu_clk_info __user *) |
1138 | (uintptr_t)args->clk_info_entries; | 1136 | (uintptr_t)args->clk_info_entries; |
1139 | 1137 | ||
1140 | gk20a_dbg_info("line=%d", __LINE__); | ||
1141 | |||
1142 | for (i = 0; i < args->num_entries; i++, entry++) { | 1138 | for (i = 0; i < args->num_entries; i++, entry++) { |
1143 | 1139 | ||
1144 | gk20a_dbg_info("line=%d", __LINE__); | ||
1145 | if (copy_from_user(&clk_info, entry, sizeof(clk_info))) | 1140 | if (copy_from_user(&clk_info, entry, sizeof(clk_info))) |
1146 | return -EFAULT; | 1141 | return -EFAULT; |
1147 | 1142 | ||
1148 | gk20a_dbg_info("i=%d domain=0x%08x", i, clk_info.clk_domain); | ||
1149 | |||
1150 | if (!nvgpu_clk_arb_is_valid_domain(g, clk_info.clk_domain)) | 1143 | if (!nvgpu_clk_arb_is_valid_domain(g, clk_info.clk_domain)) |
1151 | return -EINVAL; | 1144 | return -EINVAL; |
1152 | } | 1145 | } |