diff options
author | Tommy Kardach <thomaskardach@google.com> | 2023-03-13 13:15:45 -0700 |
---|---|---|
committer | Tommy Kardach <thomaskardach@google.com> | 2023-03-13 13:36:06 -0700 |
commit | 63a980890afbee1046c2000ff512d2333327de9d (patch) | |
tree | b79e54e343aa41655191eb144378dc306390e2e6 /lwis_fence.c | |
parent | 9302176398fd22978f697afeffdcd5a184f6b8b3 (diff) | |
download | lwis-63a980890afbee1046c2000ff512d2333327de9d.tar.gz |
LWIS: Initialize lwis_fence spinlock
Bug: 272538706
Test: Manual build and install
Change-Id: I055b9e879667237cad2278c522f2552c6a56f205
Signed-off-by: Thomas Kardach <thomaskardach@google.com>
Diffstat (limited to 'lwis_fence.c')
-rw-r--r-- | lwis_fence.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lwis_fence.c b/lwis_fence.c index 6f553a6..dec3e2c 100644 --- a/lwis_fence.c +++ b/lwis_fence.c @@ -239,6 +239,7 @@ int lwis_fence_create(struct lwis_device *lwis_dev) new_fence->fd = fd_or_err; new_fence->lwis_top_dev = lwis_dev->top_dev; new_fence->status = LWIS_FENCE_STATUS_NOT_SIGNALED; + spin_lock_init(&new_fence->lock); init_waitqueue_head(&new_fence->status_wait_queue); #ifdef LWIS_FENCE_ENABLED if (lwis_fence_debug) { |