aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-10 11:49:13 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-20 08:57:01 +0100
commitd5074b30fe54f4e05313672d76698065690eed77 (patch)
treee5a85f4afa3698b16599749a4a545031d7a67624 /nptl
parentc1080713adf0069c50e76278954f90c35946a988 (diff)
downloadglibc-d5074b30fe54f4e05313672d76698065690eed77.zip
glibc-d5074b30fe54f4e05313672d76698065690eed77.tar.gz
glibc-d5074b30fe54f4e05313672d76698065690eed77.tar.bz2
nptl: Move pthread_getschedparam implementation into libc
This is part of the libpthread removal project: <https://sourceware.org/ml/libc-alpha/2019-10/msg00080.html> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl')
-rw-r--r--nptl/Makefile3
-rw-r--r--nptl/Versions2
-rw-r--r--nptl/forward.c3
-rw-r--r--nptl/nptl-init.c1
4 files changed, 3 insertions, 6 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index 069db9a..9521fac 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -56,6 +56,7 @@ routines = \
pthread_condattr_destroy \
pthread_condattr_init \
pthread_equal \
+ pthread_getschedparam \
pthread_self \
register-atfork \
@@ -79,7 +80,7 @@ libpthread-routines = nptl-init nptlfreeres vars events version pt-interp \
pthread_join pthread_tryjoin pthread_timedjoin \
pthread_clockjoin pthread_join_common pthread_yield \
pthread_getconcurrency pthread_setconcurrency \
- pthread_getschedparam pthread_setschedparam \
+ pthread_setschedparam \
pthread_setschedprio \
pthread_attr_getguardsize pthread_attr_setguardsize \
pthread_attr_getstackaddr pthread_attr_setstackaddr \
diff --git a/nptl/Versions b/nptl/Versions
index 914404c..ccf7be3 100644
--- a/nptl/Versions
+++ b/nptl/Versions
@@ -49,7 +49,7 @@ libpthread {
pthread_create; pthread_join;
pthread_exit; pthread_detach;
- pthread_getschedparam; pthread_setschedparam;
+ pthread_setschedparam;
pthread_mutex_init; pthread_mutex_destroy;
pthread_mutex_lock; pthread_mutex_trylock; pthread_mutex_unlock;
diff --git a/nptl/forward.c b/nptl/forward.c
index 6ee4b92..f84f779 100644
--- a/nptl/forward.c
+++ b/nptl/forward.c
@@ -108,9 +108,6 @@ FORWARD_NORETURN (__pthread_exit, void, (void *retval), (retval),
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/nptl/nptl-init.c b/nptl/nptl-init.c
index 855225e..34a2518 100644
--- a/nptl/nptl-init.c
+++ b/nptl/nptl-init.c
@@ -83,7 +83,6 @@ static const struct pthread_functions pthread_functions =
.ptr___pthread_cond_timedwait_2_0 = __pthread_cond_timedwait_2_0,
# endif
.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,