Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26686e3d authored by Gustavo Padovan's avatar Gustavo Padovan Committed by android-build-merger
Browse files

libsync: open new location of sw_sync file am: ffc687ba am: 86be7fd5 am: e3c16930

am: 5f89d525

Change-Id: Ie448b10cbe9b3ae8d6ccd1843c0b6f4249617e34
parents c31c0cbe 5f89d525
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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)