diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-06-16 17:36:29 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-20 14:35:17 -0400 |
commit | 84703739a52f1c4e878e871429edb22dfcb4005e (patch) | |
tree | 334a5d1a86c574a930c8e59d31411534f656f64e /drivers/gpu/nvgpu/gk20a/bus_gk20a.h | |
parent | 50e2fdd306c253deae97a6bbf6be20f7502eba86 (diff) |
gpu: nvgpu: Move time correlation to common code
Time correlation does not have chip or OS specific dependencies, so
move it to generic new source file bus.c.
JIRA NVGPU-38
Change-Id: Ic7fdf8c9ccacf05baf1b3438a86b28e517093641
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1505171
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/bus_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/bus_gk20a.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/bus_gk20a.h b/drivers/gpu/nvgpu/gk20a/bus_gk20a.h index 088c385e..344350b4 100644 --- a/drivers/gpu/nvgpu/gk20a/bus_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/bus_gk20a.h | |||
@@ -20,12 +20,6 @@ | |||
20 | 20 | ||
21 | struct gk20a; | 21 | struct gk20a; |
22 | struct gpu_ops; | 22 | struct gpu_ops; |
23 | struct nvgpu_mem; | ||
24 | |||
25 | struct nvgpu_cpu_time_correlation_sample { | ||
26 | u64 cpu_timestamp; | ||
27 | u64 gpu_timestamp; | ||
28 | }; | ||
29 | 23 | ||
30 | void gk20a_init_bus(struct gpu_ops *gops); | 24 | void gk20a_init_bus(struct gpu_ops *gops); |
31 | 25 | ||
@@ -33,8 +27,4 @@ void gk20a_bus_isr(struct gk20a *g); | |||
33 | int gk20a_read_ptimer(struct gk20a *g, u64 *value); | 27 | int gk20a_read_ptimer(struct gk20a *g, u64 *value); |
34 | void gk20a_bus_init_hw(struct gk20a *g); | 28 | void gk20a_bus_init_hw(struct gk20a *g); |
35 | 29 | ||
36 | int gk20a_get_timestamps_zipper(struct gk20a *g, | ||
37 | u32 source_id, u32 count, | ||
38 | struct nvgpu_cpu_time_correlation_sample *samples); | ||
39 | |||
40 | #endif /* GK20A_H */ | 30 | #endif /* GK20A_H */ |