diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h index 618e1b26..4b0918de 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h | |||
@@ -27,6 +27,8 @@ struct gk20a_semaphore; | |||
27 | struct gk20a_fence; | 27 | struct gk20a_fence; |
28 | 28 | ||
29 | struct gk20a_channel_sync { | 29 | struct gk20a_channel_sync { |
30 | atomic_t refcount; | ||
31 | |||
30 | /* Generate a gpu wait cmdbuf from syncpoint. | 32 | /* Generate a gpu wait cmdbuf from syncpoint. |
31 | * Returns | 33 | * Returns |
32 | * - a gpu cmdbuf that performs the wait when executed, | 34 | * - a gpu cmdbuf that performs the wait when executed, |
@@ -91,13 +93,11 @@ struct gk20a_channel_sync { | |||
91 | /* Returns the sync point id or negative number if no syncpt*/ | 93 | /* Returns the sync point id or negative number if no syncpt*/ |
92 | int (*syncpt_id)(struct gk20a_channel_sync *s); | 94 | int (*syncpt_id)(struct gk20a_channel_sync *s); |
93 | 95 | ||
94 | /* flag to set sync destroy aggressiveness */ | ||
95 | bool aggressive_destroy; | ||
96 | |||
97 | /* Free the resources allocated by gk20a_channel_sync_create. */ | 96 | /* Free the resources allocated by gk20a_channel_sync_create. */ |
98 | void (*destroy)(struct gk20a_channel_sync *s); | 97 | void (*destroy)(struct gk20a_channel_sync *s); |
99 | }; | 98 | }; |
100 | 99 | ||
100 | void gk20a_channel_sync_destroy(struct gk20a_channel_sync *sync); | ||
101 | struct gk20a_channel_sync *gk20a_channel_sync_create(struct channel_gk20a *c); | 101 | struct gk20a_channel_sync *gk20a_channel_sync_create(struct channel_gk20a *c); |
102 | 102 | ||
103 | #endif | 103 | #endif |