Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cceaa310 authored by Harshdeep Dhatt's avatar Harshdeep Dhatt
Browse files

msm: kgsl: Call sync_fence_log only if CONFIG_SYNC is defined



Add a wrapper kgsl_sync_fence_log around sync_fence_log.
This helps get rid of compilation error if CONFIG_SYNC is
not defined.

CRs-Fixed: 748003
Change-Id: I20d9c0e4b449cb2352274b5f4062300d5562bae6
Signed-off-by: default avatarHarshdeep Dhatt <hdhatt@codeaurora.org>
parent e143b669
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1576,7 +1576,7 @@ static void _kgsl_cmdbatch_timer(unsigned long data)
			if (event->handle && event->handle->fence) {
				set_bit(CMDBATCH_FLAG_FENCE_LOG,
					&cmdbatch->priv);
				sync_fence_log(event->handle->fence);
				kgsl_sync_fence_log(event->handle->fence);
				clear_bit(CMDBATCH_FLAG_FENCE_LOG,
					&cmdbatch->priv);
			} else
+8 −0
Original line number Diff line number Diff line
@@ -49,6 +49,10 @@ void kgsl_sync_timeline_destroy(struct kgsl_context *context);
struct kgsl_sync_fence_waiter *kgsl_sync_fence_async_wait(int fd,
	void (*func)(void *priv), void *priv);
int kgsl_sync_fence_async_cancel(struct kgsl_sync_fence_waiter *waiter);
static inline void kgsl_sync_fence_log(struct sync_fence *fence)
{
	sync_fence_log(fence);
}
#else
static inline int kgsl_add_fence_event(struct kgsl_device *device,
	u32 context_id, u32 timestamp, void __user *data, int len,
@@ -80,6 +84,10 @@ kgsl_sync_fence_async_cancel(struct kgsl_sync_fence_waiter *waiter)
	return 1;
}

static inline void kgsl_sync_fence_log(struct sync_fence *fence)
{
}

#endif

#ifdef CONFIG_ONESHOT_SYNC