summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/sync_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/sync_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/sync_gk20a.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/sync_gk20a.h b/drivers/gpu/nvgpu/gk20a/sync_gk20a.h
index 7d7aff6d..8a6439ab 100644
--- a/drivers/gpu/nvgpu/gk20a/sync_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/sync_gk20a.h
@@ -3,7 +3,7 @@
3 * 3 *
4 * GK20A Sync Framework Integration 4 * GK20A Sync Framework Integration
5 * 5 *
6 * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. 6 * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
7 * 7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a 8 * Permission is hereby granted, free of charge, to any person obtaining a
9 * copy of this software and associated documentation files (the "Software"), 9 * copy of this software and associated documentation files (the "Software"),
@@ -33,9 +33,6 @@ struct sync_pt;
33struct nvgpu_semaphore; 33struct nvgpu_semaphore;
34struct fence; 34struct fence;
35 35
36int gk20a_is_sema_backed_sync_fence(struct sync_fence *fence);
37struct nvgpu_semaphore *gk20a_sync_fence_get_sema(struct sync_fence *f);
38
39#ifdef CONFIG_SYNC 36#ifdef CONFIG_SYNC
40struct sync_timeline *gk20a_sync_timeline_create(const char *fmt, ...); 37struct sync_timeline *gk20a_sync_timeline_create(const char *fmt, ...);
41void gk20a_sync_timeline_destroy(struct sync_timeline *); 38void gk20a_sync_timeline_destroy(struct sync_timeline *);
@@ -46,6 +43,7 @@ struct sync_fence *gk20a_sync_fence_create(
46 struct nvgpu_semaphore *, 43 struct nvgpu_semaphore *,
47 const char *fmt, ...); 44 const char *fmt, ...);
48struct sync_fence *gk20a_sync_fence_fdget(int fd); 45struct sync_fence *gk20a_sync_fence_fdget(int fd);
46struct nvgpu_semaphore *gk20a_sync_pt_sema(struct sync_pt *spt);
49#else 47#else
50static inline void gk20a_sync_timeline_destroy(struct sync_timeline *obj) {} 48static inline void gk20a_sync_timeline_destroy(struct sync_timeline *obj) {}
51static inline void gk20a_sync_timeline_signal(struct sync_timeline *obj) {} 49static inline void gk20a_sync_timeline_signal(struct sync_timeline *obj) {}