mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
177c874ff2
commit
48ce94f940
@@ -1294,7 +1294,7 @@ static void nvgpu_clk_arb_queue_notification(struct gk20a *g,
|
||||
|
||||
queue_index = (atomic_inc_return(&queue->tail)) % queue->size;
|
||||
/* get current timestamp */
|
||||
timestamp = (u64) get_cycles();
|
||||
timestamp = (u64) sched_clock();
|
||||
|
||||
queue->notifications[queue_index].timestamp = timestamp;
|
||||
queue->notifications[queue_index].notification = alarm_mask;
|
||||
|
||||
Reference in New Issue
Block a user