summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/clk
diff options
context:
space:
mode:
authorSourab Gupta <sourabg@nvidia.com>2018-05-04 09:52:49 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-05-18 02:34:48 -0400
commit4b2844260e6dbd6144b88f5b1cfee27b1809598b (patch)
treed19a1836a60c4c7613f2ea54eb719add5f0b9258 /drivers/gpu/nvgpu/clk
parent5903094ffeaca10fd0f49c5eae41e2d511f940f6 (diff)
gpu: nvgpu: use os agnostic api for retrieving timestamp
currently clk arbiter is using the Linux specific sched_clock() api for retrieving current timestamp. Instead use the OS agnostic nvgpu_hr_timestamp(). Jira VQRM-3741 Change-Id: I315ca16327b30db06c39046af1eb05249d1a97ca Signed-off-by: Sourab Gupta <sourabg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1709654 GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/clk')
-rw-r--r--drivers/gpu/nvgpu/clk/clk_arb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_arb.c b/drivers/gpu/nvgpu/clk/clk_arb.c
index 8b499b16..456246bf 100644
--- a/drivers/gpu/nvgpu/clk/clk_arb.c
+++ b/drivers/gpu/nvgpu/clk/clk_arb.c
@@ -70,7 +70,7 @@ static void nvgpu_clk_arb_queue_notification(struct gk20a *g,
70 70
71 queue_index = (nvgpu_atomic_inc_return(&queue->tail)) % queue->size; 71 queue_index = (nvgpu_atomic_inc_return(&queue->tail)) % queue->size;
72 /* get current timestamp */ 72 /* get current timestamp */
73 timestamp = (u64) sched_clock(); 73 timestamp = (u64) nvgpu_hr_timestamp();
74 74
75 queue->notifications[queue_index].timestamp = timestamp; 75 queue->notifications[queue_index].timestamp = timestamp;
76 queue->notifications[queue_index].notification = alarm_mask; 76 queue->notifications[queue_index].notification = alarm_mask;