diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-10-07 20:00:38 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-10-07 20:00:38 +0200 |
commit | ca602c1536ce2777f95c07525f3c42d78812e665 (patch) | |
tree | e6d867ef9ddf4680cb2d79700eac6ac62d907fa3 /nptl | |
parent | 921abe47299255a6480456c98fbb53bdc5db92a2 (diff) | |
download | glibc-ca602c1536ce2777f95c07525f3c42d78812e665.tar.gz |
nptl: Move pthread_attr_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 | 4 | ||||
-rw-r--r-- | nptl/Versions | 1 | ||||
-rw-r--r-- | nptl/forward.c | 4 | ||||
-rw-r--r-- | nptl/nptl-init.c | 1 |
4 files changed, 2 insertions, 8 deletions
diff --git a/nptl/Makefile b/nptl/Makefile index 5ade150b62..1129fd4516 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -33,7 +33,8 @@ routines = alloca_cutoff forward libc-lowlevellock libc-cancellation \ thrd_equal thrd_sleep thrd_yield pthread_equal \ pthread_attr_destroy pthread_attr_init pthread_attr_getdetachstate \ pthread_attr_setdetachstate pthread_attr_getinheritsched \ - pthread_attr_setinheritsched pthread_attr_getschedparam + pthread_attr_setinheritsched pthread_attr_getschedparam \ + pthread_attr_setschedparam shared-only-routines = forward static-only-routines = pthread_atfork @@ -57,7 +58,6 @@ libpthread-routines = nptl-init nptlfreeres vars events version pt-interp \ pthread_getschedparam pthread_setschedparam \ pthread_setschedprio \ pthread_attr_getguardsize pthread_attr_setguardsize \ - pthread_attr_setschedparam \ pthread_attr_getschedpolicy pthread_attr_setschedpolicy \ pthread_attr_getscope pthread_attr_setscope \ pthread_attr_getstackaddr pthread_attr_setstackaddr \ diff --git a/nptl/Versions b/nptl/Versions index 4fa73bfa00..be7e810875 100644 --- a/nptl/Versions +++ b/nptl/Versions @@ -49,7 +49,6 @@ libpthread { pthread_getschedparam; pthread_setschedparam; - pthread_attr_setschedparam; pthread_attr_getschedpolicy; pthread_attr_setschedpolicy; pthread_attr_getscope; pthread_attr_setscope; diff --git a/nptl/forward.c b/nptl/forward.c index f5e7730026..76665baeea 100644 --- a/nptl/forward.c +++ b/nptl/forward.c @@ -56,10 +56,6 @@ name decl \ FORWARD2 (name, int, decl, params, return defretval) -FORWARD (pthread_attr_setschedparam, - (pthread_attr_t *attr, const struct sched_param *param), - (attr, param), 0) - FORWARD (pthread_attr_getschedpolicy, (const pthread_attr_t *attr, int *policy), (attr, policy), 0) FORWARD (pthread_attr_setschedpolicy, (pthread_attr_t *attr, int policy), diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c index 909668c28a..ea91b9e138 100644 --- a/nptl/nptl-init.c +++ b/nptl/nptl-init.c @@ -72,7 +72,6 @@ void __nptl_set_robust (struct pthread *); #ifdef SHARED static const struct pthread_functions pthread_functions = { - .ptr_pthread_attr_setschedparam = __pthread_attr_setschedparam, .ptr_pthread_attr_getschedpolicy = __pthread_attr_getschedpolicy, .ptr_pthread_attr_setschedpolicy = __pthread_attr_setschedpolicy, .ptr_pthread_attr_getscope = __pthread_attr_getscope, |