Move gettid() implementation to /libs/libc/unistd

Move sched/task/task/task_gettid.c to libs/libc/unistd/lib_gettid.c.  gettid() is a dumb wrapper around getpid().  It is wasteful of resources to support TWO systme calls, one for getpid() and one for gettid().  Instead, move gettid() in the C library where it calls the single sysgtem call, getpid().  Much cleaner.
This commit is contained in:
Gregory Nutt
2020-09-22 17:09:13 -06:00
committed by Xiang Xiao
parent 7d889bf4c4
commit ebdfd16f0f
5 changed files with 3 additions and 4 deletions
-1
View File
@@ -27,7 +27,6 @@
SYSCALL_LOOKUP1(_exit, 1)
SYSCALL_LOOKUP(exit, 1)
SYSCALL_LOOKUP(getpid, 0)
SYSCALL_LOOKUP(gettid, 0)
SYSCALL_LOOKUP(sched_getparam, 2)
SYSCALL_LOOKUP(sched_getscheduler, 1)