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/gm20b | |
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/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/bus_gm20b.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/bus_gm20b.c b/drivers/gpu/nvgpu/gm20b/bus_gm20b.c index 39778c55..11c11e23 100644 --- a/drivers/gpu/nvgpu/gm20b/bus_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/bus_gm20b.c | |||
@@ -14,6 +14,7 @@ | |||
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <nvgpu/timers.h> | 16 | #include <nvgpu/timers.h> |
17 | #include <nvgpu/bus.h> | ||
17 | 18 | ||
18 | #include "bus_gm20b.h" | 19 | #include "bus_gm20b.h" |
19 | #include "gk20a/gk20a.h" | 20 | #include "gk20a/gk20a.h" |
@@ -58,6 +59,6 @@ void gm20b_init_bus(struct gpu_ops *gops) | |||
58 | gops->bus.init_hw = gk20a_bus_init_hw; | 59 | gops->bus.init_hw = gk20a_bus_init_hw; |
59 | gops->bus.isr = gk20a_bus_isr; | 60 | gops->bus.isr = gk20a_bus_isr; |
60 | gops->bus.read_ptimer = gk20a_read_ptimer; | 61 | gops->bus.read_ptimer = gk20a_read_ptimer; |
61 | gops->bus.get_timestamps_zipper = gk20a_get_timestamps_zipper; | 62 | gops->bus.get_timestamps_zipper = nvgpu_get_timestamps_zipper; |
62 | gops->bus.bar1_bind = gm20b_bus_bar1_bind; | 63 | gops->bus.bar1_bind = gm20b_bus_bar1_bind; |
63 | } | 64 | } |