From 513ebd9957c01d5d306c368371e50c0bc88712ad Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 24 Jun 2020 22:49:38 +0100 Subject: [PATCH] ipc: Remove no longer used semaphore code (NFC) --- src/xrt/ipc/ipc_protocol.h | 9 --------- src/xrt/ipc/ipc_server_process.c | 2 -- 2 files changed, 11 deletions(-) diff --git a/src/xrt/ipc/ipc_protocol.h b/src/xrt/ipc/ipc_protocol.h index 69d7b1b13..500cb1e9c 100644 --- a/src/xrt/ipc/ipc_protocol.h +++ b/src/xrt/ipc/ipc_protocol.h @@ -13,10 +13,8 @@ #include "xrt/xrt_device.h" #include "xrt/xrt_compiler.h" #include "xrt/xrt_compositor.h" - #include "xrt/xrt_results.h" -#include #define IPC_MSG_SOCK_FILE "/tmp/monado_comp_ipc" #define IPC_MAX_SWAPCHAIN_FDS 8 @@ -163,13 +161,6 @@ struct ipc_shared_memory struct xrt_output outputs[IPC_SHARED_MAX_OUTPUTS]; struct ipc_layer_slot slots[IPC_MAX_SLOTS]; - - struct - { - uint64_t predicted_display_time; - uint64_t predicted_display_period; - sem_t sem; - } wait_frame; }; /* diff --git a/src/xrt/ipc/ipc_server_process.c b/src/xrt/ipc/ipc_server_process.c index 298b4eb74..6eecd5c8d 100644 --- a/src/xrt/ipc/ipc_server_process.c +++ b/src/xrt/ipc/ipc_server_process.c @@ -241,8 +241,6 @@ init_shm(struct ipc_server *s) // Finally tell the client how many devices we have. s->ism->num_idevs = count; - sem_init(&s->ism->wait_frame.sem, true, 0); - return 0; }