libsync: open new location of sw_sync file
am: ffc687baad
Change-Id: I8da84e3bee0d805f36fcd6977bf6f2a60d500e6e
This commit is contained in:
commit
86be7fd517
1 changed files with 7 additions and 1 deletions
|
|
@ -101,7 +101,13 @@ void sync_fence_info_free(struct sync_fence_info_data *info)
|
|||
|
||||
int sw_sync_timeline_create(void)
|
||||
{
|
||||
return open("/dev/sw_sync", O_RDWR);
|
||||
int ret;
|
||||
|
||||
ret = open("/sys/kernel/debug/sync/sw_sync", O_RDWR);
|
||||
if (ret < 0)
|
||||
ret = open("/dev/sw_sync", O_RDWR);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int sw_sync_timeline_inc(int fd, unsigned count)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue