diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-10-13 12:03:32 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-14 10:52:25 -0400 |
commit | c7e0c7e7ce045a9bef53f3fa11377ddb23bd79a3 (patch) | |
tree | 85fac47e36e2958ab44dc2f79023bca9fe31a6ea /drivers/gpu/nvgpu/vgpu/vgpu.c | |
parent | 6bf323f3894bdcb95461cdf0f834cbef06e9e5d6 (diff) |
gpu: nvgpu: Move time correlation arg check to Linux
Move code checking the time correlation IOCTL arguments to Linux
IOCTL code.
JIRA NVGPU-259
Change-Id: Id3ef6839ee96844104d87e943b6940b952261796
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1578700
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c index 7949ff24..84034b38 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/vgpu.c | |||
@@ -416,11 +416,6 @@ int vgpu_get_timestamps_zipper(struct gk20a *g, | |||
416 | return -EINVAL; | 416 | return -EINVAL; |
417 | } | 417 | } |
418 | 418 | ||
419 | if (source_id != NVGPU_GPU_GET_CPU_TIME_CORRELATION_INFO_SRC_ID_TSC) { | ||
420 | nvgpu_err(g, "source_id %u not supported", source_id); | ||
421 | return -EINVAL; | ||
422 | } | ||
423 | |||
424 | msg.cmd = TEGRA_VGPU_CMD_GET_TIMESTAMPS_ZIPPER; | 419 | msg.cmd = TEGRA_VGPU_CMD_GET_TIMESTAMPS_ZIPPER; |
425 | msg.handle = vgpu_get_handle(g); | 420 | msg.handle = vgpu_get_handle(g); |
426 | p->source_id = TEGRA_VGPU_GET_TIMESTAMPS_ZIPPER_SRC_ID_TSC; | 421 | p->source_id = TEGRA_VGPU_GET_TIMESTAMPS_ZIPPER_SRC_ID_TSC; |