diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c index 12e3a297..c37f45dd 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | |||
@@ -1376,6 +1376,9 @@ static int nvgpu_gpu_get_temperature(struct gk20a *g, | |||
1376 | if (args->reserved[0] || args->reserved[1] || args->reserved[2]) | 1376 | if (args->reserved[0] || args->reserved[1] || args->reserved[2]) |
1377 | return -EINVAL; | 1377 | return -EINVAL; |
1378 | 1378 | ||
1379 | if (!nvgpu_is_enabled(g, NVGPU_SUPPORT_GET_TEMPERATURE)) | ||
1380 | return -EINVAL; | ||
1381 | |||
1379 | if (!g->ops.therm.get_internal_sensor_curr_temp) | 1382 | if (!g->ops.therm.get_internal_sensor_curr_temp) |
1380 | return -EINVAL; | 1383 | return -EINVAL; |
1381 | 1384 | ||