aboutsummaryrefslogtreecommitdiff
path: root/htl
diff options
context:
space:
mode:
authorGuy-Fleury Iteriteka <gfleury@disroot.org>2023-07-16 10:44:06 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-24 01:57:04 +0200
commita1a942fb5f786ebcc71631de020e05d6b6343985 (patch)
treef03c3e9484bee9f08b288c584f3634a4fe7b3e2e /htl
parent9dfa2562162bf5f7ad1d85d34d827c388631fd86 (diff)
downloadglibc-a1a942fb5f786ebcc71631de020e05d6b6343985.zip
glibc-a1a942fb5f786ebcc71631de020e05d6b6343985.tar.gz
glibc-a1a942fb5f786ebcc71631de020e05d6b6343985.tar.bz2
htl: move pthread_getschedparam into libc
Signed-off-by: Guy-Fleury Iteriteka <gfleury@disroot.org> Message-Id: <20230716084414.107245-3-gfleury@disroot.org>
Diffstat (limited to 'htl')
-rw-r--r--htl/Makefile5
-rw-r--r--htl/Versions2
-rw-r--r--htl/forward.c4
-rw-r--r--htl/pt-initialize.c1
4 files changed, 4 insertions, 8 deletions
diff --git a/htl/Makefile b/htl/Makefile
index b131aa1..9362a58 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -122,7 +122,7 @@ libpthread-routines := pt-attr pt-attr-destroy pt-attr-getdetachstate \
pt-kill \
pt-getcpuclockid \
\
- pt-getschedparam pt-setschedparam pt-setschedprio \
+ pt-setschedparam pt-setschedprio \
pt-yield \
\
sem_close sem-destroy sem-getvalue sem-init sem_open \
@@ -164,7 +164,8 @@ headers := \
distribute :=
-routines := forward libc_pthread_init alloca_cutoff htlfreeres pt-nthreads pt-pthread_self pt-self pt-equal
+routines := forward libc_pthread_init alloca_cutoff htlfreeres pt-nthreads pt-pthread_self pt-self pt-equal \
+ pt-getschedparam
shared-only-routines = forward
extra-libs := libpthread
diff --git a/htl/Versions b/htl/Versions
index c2be779..f376bf2 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -94,7 +94,7 @@ libpthread {
pthread_getattr_np;
pthread_getconcurrency; pthread_getcpuclockid;
- pthread_getschedparam; pthread_getspecific;
+ pthread_getspecific;
pthread_join;
diff --git a/htl/forward.c b/htl/forward.c
index a8147d3..df0d4ec 100644
--- a/htl/forward.c
+++ b/htl/forward.c
@@ -107,10 +107,6 @@ FORWARD_NORETURN (__pthread_exit, void, (void *retval), (retval),
exit (EXIT_SUCCESS))
strong_alias (__pthread_exit, pthread_exit);
-
-FORWARD (pthread_getschedparam,
- (pthread_t target_thread, int *policy, struct sched_param *param),
- (target_thread, policy, param), 0)
FORWARD (pthread_setschedparam,
(pthread_t target_thread, int policy,
const struct sched_param *param), (target_thread, policy, param), 0)
diff --git a/htl/pt-initialize.c b/htl/pt-initialize.c
index 0386b75..7fc0660 100644
--- a/htl/pt-initialize.c
+++ b/htl/pt-initialize.c
@@ -48,7 +48,6 @@ static const struct pthread_functions pthread_functions = {
.ptr_pthread_cond_wait = __pthread_cond_wait,
.ptr_pthread_cond_timedwait = __pthread_cond_timedwait,
.ptr___pthread_exit = __pthread_exit,
- .ptr_pthread_getschedparam = __pthread_getschedparam,
.ptr_pthread_setschedparam = __pthread_setschedparam,
.ptr_pthread_mutex_destroy = __pthread_mutex_destroy,
.ptr_pthread_mutex_init = __pthread_mutex_init,