Snap for 12673321 from acd3baef089fcfa3a7dbe82ef3f2a72522b705eb to 25Q1-release
Change-Id: Icea17acf4953b8a7cca6776c765b962f2efff1f6
diff --git a/lib/trace-cmd/trace-timesync.c b/lib/trace-cmd/trace-timesync.c
index bbefda2..cc44af3 100644
--- a/lib/trace-cmd/trace-timesync.c
+++ b/lib/trace-cmd/trace-timesync.c
@@ -41,28 +41,6 @@
unsigned short cpu;
} __packed;
-#ifdef __ANDROID__
-#define __NR_sched_setaffinity 122
-#define __NR_sched_getaffinity 123
-
-static int pthread_setaffinity_np(pthread_t thread, size_t cpusetsize, const cpu_set_t *cpuset)
-{
- return -syscall(__NR_sched_setaffinity, thread, cpusetsize, cpuset);
-}
-
-static int pthread_getaffinity_np(pthread_t thread, size_t cpusetsize, const cpu_set_t *cpuset)
-{
- long ret = syscall(__NR_sched_getaffinity, thread, cpusetsize, cpuset);
-
- if (ret < 0)
- return ret;
- if (ret < cpusetsize)
- memset((char *)cpuset+ret, 0, cpusetsize-ret);
-
- return 0;
-}
-#endif /* __ANDROID__ */
-
static struct tsync_proto *tsync_proto_list;
static struct tsync_proto *tsync_proto_find(const char *proto_name)