diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-02-10 11:51:05 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-02-20 08:57:01 +0100 |
commit | f2323817dde1e87d44e058af5954c25d72fbdb11 (patch) | |
tree | 915969b9a6b9755c49537692129b40cd34fadd16 /nptl | |
parent | d5074b30fe54f4e05313672d76698065690eed77 (diff) | |
download | glibc-f2323817dde1e87d44e058af5954c25d72fbdb11.zip glibc-f2323817dde1e87d44e058af5954c25d72fbdb11.tar.gz glibc-f2323817dde1e87d44e058af5954c25d72fbdb11.tar.bz2 |
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/Makefile | 2 | ||||
-rw-r--r-- | nptl/Versions | 2 | ||||
-rw-r--r-- | nptl/forward.c | 5 | ||||
-rw-r--r-- | nptl/nptl-init.c | 1 |
4 files changed, 1 insertions, 9 deletions
diff --git a/nptl/Makefile b/nptl/Makefile index 9521fac..e554a38 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 ccf7be3..543dddc 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 f84f779..d486c9f 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 34a2518..95ac91d 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, |