diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2016-11-23 13:18:19 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-01-06 12:14:15 -0500 |
commit | 48ce94f940c9bae34282c40852047a7af7763ceb (patch) | |
tree | bce087a22df6ef95a2d250250116514217394f5f /drivers | |
parent | 177c874ff27875c899bd5d25b79d02f35e516c85 (diff) |
gpu: nvgpu: CPU timestamps for alarms
Use sched_clock() for alarm timestamps to return
number of nanoseconds since the system was started.
Jira DNVGPU-186
Change-Id: Ie16fe5442ea8a5213bf5401a3faedcce387b3d93
Reviewed-on: http://git-master/r/1259026
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
(cherry picked from commit 383601c4d006734e13f0bfa386381573c87209da)
Reviewed-on: http://git-master/r/1280888
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_arb.c | 2 |
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 b4ed373d..d6cbe137 100644 --- a/drivers/gpu/nvgpu/clk/clk_arb.c +++ b/drivers/gpu/nvgpu/clk/clk_arb.c | |||
@@ -1294,7 +1294,7 @@ static void nvgpu_clk_arb_queue_notification(struct gk20a *g, | |||
1294 | 1294 | ||
1295 | queue_index = (atomic_inc_return(&queue->tail)) % queue->size; | 1295 | queue_index = (atomic_inc_return(&queue->tail)) % queue->size; |
1296 | /* get current timestamp */ | 1296 | /* get current timestamp */ |
1297 | timestamp = (u64) get_cycles(); | 1297 | timestamp = (u64) sched_clock(); |
1298 | 1298 | ||
1299 | queue->notifications[queue_index].timestamp = timestamp; | 1299 | queue->notifications[queue_index].timestamp = timestamp; |
1300 | queue->notifications[queue_index].notification = alarm_mask; | 1300 | queue->notifications[queue_index].notification = alarm_mask; |