diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_channel.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_channel.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_channel.c b/drivers/gpu/nvgpu/common/linux/ioctl_channel.c index f93412c3..b04bb9de 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_channel.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_channel.c | |||
@@ -780,12 +780,9 @@ static int gk20a_ioctl_channel_submit_gpfifo( | |||
780 | int ret = 0; | 780 | int ret = 0; |
781 | nvgpu_log_fn(g, " "); | 781 | nvgpu_log_fn(g, " "); |
782 | 782 | ||
783 | #ifdef CONFIG_DEBUG_FS | ||
784 | profile = gk20a_fifo_profile_acquire(ch->g); | 783 | profile = gk20a_fifo_profile_acquire(ch->g); |
784 | gk20a_fifo_profile_snapshot(profile, PROFILE_IOCTL_ENTRY); | ||
785 | 785 | ||
786 | if (profile) | ||
787 | profile->timestamp[PROFILE_IOCTL_ENTRY] = nvgpu_current_time_ns(); | ||
788 | #endif | ||
789 | if (ch->has_timedout) | 786 | if (ch->has_timedout) |
790 | return -ETIMEDOUT; | 787 | return -ETIMEDOUT; |
791 | 788 | ||
@@ -825,12 +822,11 @@ static int gk20a_ioctl_channel_submit_gpfifo( | |||
825 | } | 822 | } |
826 | } | 823 | } |
827 | gk20a_fence_put(fence_out); | 824 | gk20a_fence_put(fence_out); |
828 | #ifdef CONFIG_DEBUG_FS | 825 | |
829 | if (profile) { | 826 | gk20a_fifo_profile_snapshot(profile, PROFILE_IOCTL_EXIT); |
830 | profile->timestamp[PROFILE_IOCTL_EXIT] = nvgpu_current_time_ns(); | 827 | if (profile) |
831 | gk20a_fifo_profile_release(ch->g, profile); | 828 | gk20a_fifo_profile_release(ch->g, profile); |
832 | } | 829 | |
833 | #endif | ||
834 | clean_up: | 830 | clean_up: |
835 | return ret; | 831 | return ret; |
836 | } | 832 | } |