diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/debug_fifo.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/debug_fifo.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/debug_fifo.c b/drivers/gpu/nvgpu/common/linux/debug_fifo.c index f2aaef58..2b5674c0 100644 --- a/drivers/gpu/nvgpu/common/linux/debug_fifo.c +++ b/drivers/gpu/nvgpu/common/linux/debug_fifo.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/seq_file.h> | 19 | #include <linux/seq_file.h> |
20 | 20 | ||
21 | #include <nvgpu/sort.h> | 21 | #include <nvgpu/sort.h> |
22 | #include <nvgpu/timers.h> | ||
22 | 23 | ||
23 | void __gk20a_fifo_profile_free(struct nvgpu_ref *ref); | 24 | void __gk20a_fifo_profile_free(struct nvgpu_ref *ref); |
24 | 25 | ||
@@ -325,6 +326,12 @@ void gk20a_fifo_debugfs_init(struct gk20a *g) | |||
325 | 326 | ||
326 | } | 327 | } |
327 | 328 | ||
329 | void gk20a_fifo_profile_snapshot(struct fifo_profile_gk20a *profile, int idx) | ||
330 | { | ||
331 | if (profile) | ||
332 | profile->timestamp[idx] = nvgpu_current_time_ns(); | ||
333 | } | ||
334 | |||
328 | void __gk20a_fifo_profile_free(struct nvgpu_ref *ref) | 335 | void __gk20a_fifo_profile_free(struct nvgpu_ref *ref) |
329 | { | 336 | { |
330 | struct fifo_gk20a *f = container_of(ref, struct fifo_gk20a, | 337 | struct fifo_gk20a *f = container_of(ref, struct fifo_gk20a, |