about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-10 11:51:05 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-20 08:57:01 +0100
commitf2323817dde1e87d44e058af5954c25d72fbdb11 (patch)
tree915969b9a6b9755c49537692129b40cd34fadd16 /nptl
parentd5074b30fe54f4e05313672d76698065690eed77 (diff)
downloadglibc-f2323817dde1e87d44e058af5954c25d72fbdb11.tar.gz
glibc-f2323817dde1e87d44e058af5954c25d72fbdb11.tar.xz
glibc-f2323817dde1e87d44e058af5954c25d72fbdb11.zip
nptl: Move pthread_setschedparam 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/Makefile2
-rw-r--r--nptl/Versions2
-rw-r--r--nptl/forward.c5
-rw-r--r--nptl/nptl-init.c1
4 files changed, 1 insertions, 9 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index 9521fac620..e554a3898d 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -58,6 +58,7 @@ routines = \
   pthread_equal \
   pthread_getschedparam \
   pthread_self \
+  pthread_setschedparam \
   register-atfork \
 
 shared-only-routines = forward
@@ -80,7 +81,6 @@ 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_setschedparam \
 		      pthread_setschedprio \
 		      pthread_attr_getguardsize pthread_attr_setguardsize \
 		      pthread_attr_getstackaddr pthread_attr_setstackaddr \
diff --git a/nptl/Versions b/nptl/Versions
index ccf7be396b..543dddc4ee 100644
--- a/nptl/Versions
+++ b/nptl/Versions
@@ -49,8 +49,6 @@ libpthread {
     pthread_create; pthread_join;
     pthread_exit; pthread_detach;
 
-    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 f84f7795a2..d486c9fec9 100644
--- a/nptl/forward.c
+++ b/nptl/forward.c
@@ -108,11 +108,6 @@ FORWARD_NORETURN (__pthread_exit, void, (void *retval), (retval),
 strong_alias (__pthread_exit, pthread_exit);
 
 
-FORWARD (pthread_setschedparam,
-	 (pthread_t target_thread, int policy,
-	  const struct sched_param *param), (target_thread, policy, param), 0)
-
-
 FORWARD (pthread_mutex_destroy, (pthread_mutex_t *mutex), (mutex), 0)
 
 FORWARD (pthread_mutex_init,
diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c
index 34a2518250..95ac91df15 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_setschedparam = __pthread_setschedparam,
     .ptr_pthread_mutex_destroy = __pthread_mutex_destroy,
     .ptr_pthread_mutex_init = __pthread_mutex_init,
     .ptr_pthread_mutex_lock = __pthread_mutex_lock,