Update for kernel headers v4.8.14.
Update sync.c to include the structurs from sw_sync.h. This uapi header has been deleted. Test: Built mips/arm/arm64/x86/x86_64. Built and booted angler. Change-Id: I2495cb17b35f697fb8a2a00f6633ccb53f78293f
This commit is contained in:
parent
b0a15d8319
commit
1514bb4f2f
1 changed files with 10 additions and 2 deletions
|
|
@ -21,8 +21,6 @@
|
|||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <linux/sw_sync.h>
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
|
@ -42,6 +40,16 @@ struct sync_merge_data {
|
|||
#define SYNC_IOC_MERGE _IOWR(SYNC_IOC_MAGIC, 1, struct sync_merge_data)
|
||||
#define SYNC_IOC_FENCE_INFO _IOWR(SYNC_IOC_MAGIC, 2, struct sync_fence_info_data)
|
||||
|
||||
struct sw_sync_create_fence_data {
|
||||
__u32 value;
|
||||
char name[32];
|
||||
__s32 fence;
|
||||
};
|
||||
|
||||
#define SW_SYNC_IOC_MAGIC 'W'
|
||||
#define SW_SYNC_IOC_CREATE_FENCE _IOWR(SW_SYNC_IOC_MAGIC, 0, struct sw_sync_create_fence_data)
|
||||
#define SW_SYNC_IOC_INC _IOW(SW_SYNC_IOC_MAGIC, 1, __u32)
|
||||
|
||||
int sync_wait(int fd, int timeout)
|
||||
{
|
||||
__s32 to = timeout;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue