diff options
author | 2020-02-10 11:23:32 +0100 | |
---|---|---|
committer | 2020-02-20 08:57:01 +0100 | |
commit | f0929a227b408f369c410645a87d3175a23876b0 (patch) | |
tree | 3b246415da3990f173de778060d7bf10f27dc5e2 /nptl | |
parent | nptl: Move pthread_attr_getschedpolicy implementation into libc (diff) | |
download | glibc-f0929a227b408f369c410645a87d3175a23876b0.tar.gz glibc-f0929a227b408f369c410645a87d3175a23876b0.tar.bz2 glibc-f0929a227b408f369c410645a87d3175a23876b0.zip |
nptl: Move pthread_attr_setschedpolicy 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 | 1 | ||||
-rw-r--r-- | nptl/forward.c | 3 | ||||
-rw-r--r-- | nptl/nptl-init.c | 1 |
4 files changed, 1 insertions, 6 deletions
diff --git a/nptl/Makefile b/nptl/Makefile index fefbf895b0..6a86021244 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -46,6 +46,7 @@ routines = \ pthread_attr_setdetachstate \ pthread_attr_setinheritsched \ pthread_attr_setschedparam \ + pthread_attr_setschedpolicy \ pthread_equal \ pthread_self \ register-atfork \ @@ -73,7 +74,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_setschedpolicy \ pthread_attr_getscope pthread_attr_setscope \ pthread_attr_getstackaddr pthread_attr_setstackaddr \ pthread_attr_getstacksize pthread_attr_setstacksize \ diff --git a/nptl/Versions b/nptl/Versions index d8312e70cc..ca0a7e62a8 100644 --- a/nptl/Versions +++ b/nptl/Versions @@ -49,7 +49,6 @@ libpthread { pthread_getschedparam; pthread_setschedparam; - pthread_attr_setschedpolicy; pthread_attr_getscope; pthread_attr_setscope; pthread_mutex_init; pthread_mutex_destroy; diff --git a/nptl/forward.c b/nptl/forward.c index ed5b6c9bb4..7e7fcf2c59 100644 --- a/nptl/forward.c +++ b/nptl/forward.c @@ -56,9 +56,6 @@ name decl \ FORWARD2 (name, int, decl, params, return defretval) -FORWARD (pthread_attr_setschedpolicy, (pthread_attr_t *attr, int policy), - (attr, policy), 0) - FORWARD (pthread_attr_getscope, (const pthread_attr_t *attr, int *scope), (attr, scope), 0) FORWARD (pthread_attr_setscope, (pthread_attr_t *attr, int scope), diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c index 1f8852f87b..96c2b61b3c 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_setschedpolicy = __pthread_attr_setschedpolicy, .ptr_pthread_attr_getscope = __pthread_attr_getscope, .ptr_pthread_attr_setscope = __pthread_attr_setscope, .ptr_pthread_condattr_destroy = __pthread_condattr_destroy, |