diff options
Diffstat (limited to 'src/intel/vulkan/anv_allocator.c')
-rw-r--r-- | src/intel/vulkan/anv_allocator.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/src/intel/vulkan/anv_allocator.c b/src/intel/vulkan/anv_allocator.c index 27eedb53aa7..4d8eea641a6 100644 --- a/src/intel/vulkan/anv_allocator.c +++ b/src/intel/vulkan/anv_allocator.c @@ -21,20 +21,17 @@ * IN THE SOFTWARE. */ -#include <stdint.h> #include <stdlib.h> #include <unistd.h> #include <limits.h> #include <assert.h> -#include <linux/futex.h> #include <linux/memfd.h> -#include <sys/time.h> #include <sys/mman.h> -#include <sys/syscall.h> #include "anv_private.h" #include "util/hash_table.h" +#include "util/simple_mtx.h" #ifdef HAVE_VALGRIND #define VG_NOACCESS_READ(__ptr) ({ \ @@ -112,25 +109,6 @@ struct anv_mmap_cleanup { #define ANV_MMAP_CLEANUP_INIT ((struct anv_mmap_cleanup){0}) -static inline long -sys_futex(void *addr1, int op, int val1, - struct timespec *timeout, void *addr2, int val3) -{ - return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); -} - -static inline int -futex_wake(uint32_t *addr, int count) -{ - return sys_futex(addr, FUTEX_WAKE, count, NULL, NULL, 0); -} - -static inline int -futex_wait(uint32_t *addr, int32_t value) -{ - return sys_futex(addr, FUTEX_WAIT, value, NULL, NULL, 0); -} - static inline int memfd_create(const char *name, unsigned int flags) { |