diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-04-17 05:17:26 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-17 20:36:20 -0400 |
commit | 26deb61b3b12c8f876133b78e64575d1478d0c95 (patch) | |
tree | f948d6f778388d18f420bcfa1ac48e0c4560a6ab /drivers/gpu/nvgpu/gk20a | |
parent | 001f19af433b5909e56e8565c3fab6d63a066709 (diff) |
gpu: nvgpu: Add wrapper nvgpu/kref.h
Add wrapper header file nvgpu/kref.h.
It #includes <linux/kref.h> in Linux.
JIRA NVGPU-13
Change-Id: Ib8b002268b1960646986551ecb9f286e1e21e7f6
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1463770
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fence_gk20a.h | 3 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/sync_gk20a.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/tsg_gk20a.h | 1 |
6 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h index 77dae9a7..c26cd250 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h | |||
@@ -17,9 +17,10 @@ | |||
17 | #ifndef _GK20A_FENCE_H_ | 17 | #ifndef _GK20A_FENCE_H_ |
18 | #define _GK20A_FENCE_H_ | 18 | #define _GK20A_FENCE_H_ |
19 | 19 | ||
20 | #include <linux/kref.h> | ||
21 | #include <linux/wait.h> | 20 | #include <linux/wait.h> |
22 | 21 | ||
22 | #include <nvgpu/kref.h> | ||
23 | |||
23 | struct platform_device; | 24 | struct platform_device; |
24 | struct sync_timeline; | 25 | struct sync_timeline; |
25 | struct sync_fence; | 26 | struct sync_fence; |
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h index 70addf13..0bec9e82 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | |||
@@ -25,6 +25,8 @@ | |||
25 | #include "tsg_gk20a.h" | 25 | #include "tsg_gk20a.h" |
26 | #include "debug_gk20a.h" | 26 | #include "debug_gk20a.h" |
27 | 27 | ||
28 | #include <nvgpu/kref.h> | ||
29 | |||
28 | #define MAX_RUNLIST_BUFFERS 2 | 30 | #define MAX_RUNLIST_BUFFERS 2 |
29 | 31 | ||
30 | #define FIFO_INVAL_ENGINE_ID ((u32)~0) | 32 | #define FIFO_INVAL_ENGINE_ID ((u32)~0) |
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 85878423..763cccaf 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -42,6 +42,7 @@ struct dbg_profiler_object_data; | |||
42 | #include <nvgpu/log.h> | 42 | #include <nvgpu/log.h> |
43 | #include <nvgpu/pramin.h> | 43 | #include <nvgpu/pramin.h> |
44 | #include <nvgpu/acr/nvgpu_acr.h> | 44 | #include <nvgpu/acr/nvgpu_acr.h> |
45 | #include <nvgpu/kref.h> | ||
45 | 46 | ||
46 | #include "clk_gk20a.h" | 47 | #include "clk_gk20a.h" |
47 | #include "ce2_gk20a.h" | 48 | #include "ce2_gk20a.h" |
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index 924c1d3d..7452a0c1 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <nvgpu/allocator.h> | 28 | #include <nvgpu/allocator.h> |
29 | #include <nvgpu/list.h> | 29 | #include <nvgpu/list.h> |
30 | #include <nvgpu/rbtree.h> | 30 | #include <nvgpu/rbtree.h> |
31 | #include <nvgpu/kref.h> | ||
31 | 32 | ||
32 | #ifdef CONFIG_ARM64 | 33 | #ifdef CONFIG_ARM64 |
33 | #define outer_flush_range(a, b) | 34 | #define outer_flush_range(a, b) |
diff --git a/drivers/gpu/nvgpu/gk20a/sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/sync_gk20a.c index 04afe0a3..10c4f57b 100644 --- a/drivers/gpu/nvgpu/gk20a/sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/sync_gk20a.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <nvgpu/kmem.h> | 24 | #include <nvgpu/kmem.h> |
25 | #include <nvgpu/semaphore.h> | 25 | #include <nvgpu/semaphore.h> |
26 | #include <nvgpu/bug.h> | 26 | #include <nvgpu/bug.h> |
27 | #include <nvgpu/kref.h> | ||
27 | 28 | ||
28 | #include "../drivers/staging/android/sync.h" | 29 | #include "../drivers/staging/android/sync.h" |
29 | 30 | ||
diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h index 178b8672..945058a2 100644 --- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h | |||
@@ -17,6 +17,7 @@ | |||
17 | #define __TSG_GK20A_H_ | 17 | #define __TSG_GK20A_H_ |
18 | 18 | ||
19 | #include <nvgpu/lock.h> | 19 | #include <nvgpu/lock.h> |
20 | #include <nvgpu/kref.h> | ||
20 | 21 | ||
21 | #define NVGPU_INVALID_TSG_ID (-1) | 22 | #define NVGPU_INVALID_TSG_ID (-1) |
22 | 23 | ||