From 4b2844260e6dbd6144b88f5b1cfee27b1809598b Mon Sep 17 00:00:00 2001 From: Sourab Gupta Date: Fri, 4 May 2018 19:22:49 +0530 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1709654 GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/clk/clk_arb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu') 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, queue_index = (nvgpu_atomic_inc_return(&queue->tail)) % queue->size; /* get current timestamp */ - timestamp = (u64) sched_clock(); + timestamp = (u64) nvgpu_hr_timestamp(); queue->notifications[queue_index].timestamp = timestamp; queue->notifications[queue_index].notification = alarm_mask; -- cgit v1.2.2