summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/ioctl_channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_channel.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/ioctl_channel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_channel.c b/drivers/gpu/nvgpu/common/linux/ioctl_channel.c
index 057c81e2..f93412c3 100644
--- a/drivers/gpu/nvgpu/common/linux/ioctl_channel.c
+++ b/drivers/gpu/nvgpu/common/linux/ioctl_channel.c
@@ -784,7 +784,7 @@ static int gk20a_ioctl_channel_submit_gpfifo(
784 profile = gk20a_fifo_profile_acquire(ch->g); 784 profile = gk20a_fifo_profile_acquire(ch->g);
785 785
786 if (profile) 786 if (profile)
787 profile->timestamp[PROFILE_IOCTL_ENTRY] = sched_clock(); 787 profile->timestamp[PROFILE_IOCTL_ENTRY] = nvgpu_current_time_ns();
788#endif 788#endif
789 if (ch->has_timedout) 789 if (ch->has_timedout)
790 return -ETIMEDOUT; 790 return -ETIMEDOUT;
@@ -827,7 +827,7 @@ static int gk20a_ioctl_channel_submit_gpfifo(
827 gk20a_fence_put(fence_out); 827 gk20a_fence_put(fence_out);
828#ifdef CONFIG_DEBUG_FS 828#ifdef CONFIG_DEBUG_FS
829 if (profile) { 829 if (profile) {
830 profile->timestamp[PROFILE_IOCTL_EXIT] = sched_clock(); 830 profile->timestamp[PROFILE_IOCTL_EXIT] = nvgpu_current_time_ns();
831 gk20a_fifo_profile_release(ch->g, profile); 831 gk20a_fifo_profile_release(ch->g, profile);
832 } 832 }
833#endif 833#endif