mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
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>
This commit is contained in:
parent
c1080713ad
commit
d5074b30fe
@ -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 \
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
@ -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,
|
||||
|
@ -42,7 +42,6 @@ struct pthread_functions
|
||||
pthread_mutex_t *,
|
||||
const struct timespec *);
|
||||
void (*ptr___pthread_exit) (void *) __attribute__ ((__noreturn__));
|
||||
int (*ptr_pthread_getschedparam) (pthread_t, int *, struct sched_param *);
|
||||
int (*ptr_pthread_setschedparam) (pthread_t, int,
|
||||
const struct sched_param *);
|
||||
int (*ptr_pthread_mutex_destroy) (pthread_mutex_t *);
|
||||
|
@ -101,7 +101,6 @@ GLIBC_2.17 pthread_getattr_np F
|
||||
GLIBC_2.17 pthread_getconcurrency F
|
||||
GLIBC_2.17 pthread_getcpuclockid F
|
||||
GLIBC_2.17 pthread_getname_np F
|
||||
GLIBC_2.17 pthread_getschedparam F
|
||||
GLIBC_2.17 pthread_getspecific F
|
||||
GLIBC_2.17 pthread_join F
|
||||
GLIBC_2.17 pthread_key_create F
|
||||
|
@ -52,7 +52,6 @@ GLIBC_2.0 pthread_cond_wait F
|
||||
GLIBC_2.0 pthread_create F
|
||||
GLIBC_2.0 pthread_detach F
|
||||
GLIBC_2.0 pthread_exit F
|
||||
GLIBC_2.0 pthread_getschedparam F
|
||||
GLIBC_2.0 pthread_getspecific F
|
||||
GLIBC_2.0 pthread_join F
|
||||
GLIBC_2.0 pthread_key_create F
|
||||
|
@ -135,7 +135,6 @@ GLIBC_2.4 pthread_getaffinity_np F
|
||||
GLIBC_2.4 pthread_getattr_np F
|
||||
GLIBC_2.4 pthread_getconcurrency F
|
||||
GLIBC_2.4 pthread_getcpuclockid F
|
||||
GLIBC_2.4 pthread_getschedparam F
|
||||
GLIBC_2.4 pthread_getspecific F
|
||||
GLIBC_2.4 pthread_join F
|
||||
GLIBC_2.4 pthread_key_create F
|
||||
|
@ -135,7 +135,6 @@ GLIBC_2.4 pthread_getaffinity_np F
|
||||
GLIBC_2.4 pthread_getattr_np F
|
||||
GLIBC_2.4 pthread_getconcurrency F
|
||||
GLIBC_2.4 pthread_getcpuclockid F
|
||||
GLIBC_2.4 pthread_getschedparam F
|
||||
GLIBC_2.4 pthread_getspecific F
|
||||
GLIBC_2.4 pthread_join F
|
||||
GLIBC_2.4 pthread_key_create F
|
||||
|
@ -110,7 +110,6 @@ GLIBC_2.29 pthread_getattr_np F
|
||||
GLIBC_2.29 pthread_getconcurrency F
|
||||
GLIBC_2.29 pthread_getcpuclockid F
|
||||
GLIBC_2.29 pthread_getname_np F
|
||||
GLIBC_2.29 pthread_getschedparam F
|
||||
GLIBC_2.29 pthread_getspecific F
|
||||
GLIBC_2.29 pthread_join F
|
||||
GLIBC_2.29 pthread_key_create F
|
||||
|
@ -96,7 +96,6 @@ GLIBC_2.2 pthread_detach F
|
||||
GLIBC_2.2 pthread_exit F
|
||||
GLIBC_2.2 pthread_getconcurrency F
|
||||
GLIBC_2.2 pthread_getcpuclockid F
|
||||
GLIBC_2.2 pthread_getschedparam F
|
||||
GLIBC_2.2 pthread_getspecific F
|
||||
GLIBC_2.2 pthread_join F
|
||||
GLIBC_2.2 pthread_key_create F
|
||||
|
@ -52,7 +52,6 @@ GLIBC_2.0 pthread_cond_wait F
|
||||
GLIBC_2.0 pthread_create F
|
||||
GLIBC_2.0 pthread_detach F
|
||||
GLIBC_2.0 pthread_exit F
|
||||
GLIBC_2.0 pthread_getschedparam F
|
||||
GLIBC_2.0 pthread_getspecific F
|
||||
GLIBC_2.0 pthread_join F
|
||||
GLIBC_2.0 pthread_key_create F
|
||||
|
@ -96,7 +96,6 @@ GLIBC_2.2 pthread_detach F
|
||||
GLIBC_2.2 pthread_exit F
|
||||
GLIBC_2.2 pthread_getconcurrency F
|
||||
GLIBC_2.2 pthread_getcpuclockid F
|
||||
GLIBC_2.2 pthread_getschedparam F
|
||||
GLIBC_2.2 pthread_getspecific F
|
||||
GLIBC_2.2 pthread_join F
|
||||
GLIBC_2.2 pthread_key_create F
|
||||
|
@ -135,7 +135,6 @@ GLIBC_2.4 pthread_getaffinity_np F
|
||||
GLIBC_2.4 pthread_getattr_np F
|
||||
GLIBC_2.4 pthread_getconcurrency F
|
||||
GLIBC_2.4 pthread_getcpuclockid F
|
||||
GLIBC_2.4 pthread_getschedparam F
|
||||
GLIBC_2.4 pthread_getspecific F
|
||||
GLIBC_2.4 pthread_join F
|
||||
GLIBC_2.4 pthread_key_create F
|
||||
|
@ -52,7 +52,6 @@ GLIBC_2.0 pthread_cond_wait F
|
||||
GLIBC_2.0 pthread_create F
|
||||
GLIBC_2.0 pthread_detach F
|
||||
GLIBC_2.0 pthread_exit F
|
||||
GLIBC_2.0 pthread_getschedparam F
|
||||
GLIBC_2.0 pthread_getspecific F
|
||||
GLIBC_2.0 pthread_join F
|
||||
GLIBC_2.0 pthread_key_create F
|
||||
|
@ -102,7 +102,6 @@ GLIBC_2.18 pthread_getattr_np F
|
||||
GLIBC_2.18 pthread_getconcurrency F
|
||||
GLIBC_2.18 pthread_getcpuclockid F
|
||||
GLIBC_2.18 pthread_getname_np F
|
||||
GLIBC_2.18 pthread_getschedparam F
|
||||
GLIBC_2.18 pthread_getspecific F
|
||||
GLIBC_2.18 pthread_join F
|
||||
GLIBC_2.18 pthread_key_create F
|
||||
|
@ -102,7 +102,6 @@ GLIBC_2.18 pthread_getattr_np F
|
||||
GLIBC_2.18 pthread_getconcurrency F
|
||||
GLIBC_2.18 pthread_getcpuclockid F
|
||||
GLIBC_2.18 pthread_getname_np F
|
||||
GLIBC_2.18 pthread_getschedparam F
|
||||
GLIBC_2.18 pthread_getspecific F
|
||||
GLIBC_2.18 pthread_join F
|
||||
GLIBC_2.18 pthread_key_create F
|
||||
|
@ -52,7 +52,6 @@ GLIBC_2.0 pthread_cond_wait F
|
||||
GLIBC_2.0 pthread_create F
|
||||
GLIBC_2.0 pthread_detach F
|
||||
GLIBC_2.0 pthread_exit F
|
||||
GLIBC_2.0 pthread_getschedparam F
|
||||
GLIBC_2.0 pthread_getspecific F
|
||||
GLIBC_2.0 pthread_join F
|
||||
GLIBC_2.0 pthread_key_create F
|
||||
|
@ -52,7 +52,6 @@ GLIBC_2.0 pthread_cond_wait F
|
||||
GLIBC_2.0 pthread_create F
|
||||
GLIBC_2.0 pthread_detach F
|
||||
GLIBC_2.0 pthread_exit F
|
||||
GLIBC_2.0 pthread_getschedparam F
|
||||
GLIBC_2.0 pthread_getspecific F
|
||||
GLIBC_2.0 pthread_join F
|
||||
GLIBC_2.0 pthread_key_create F
|
||||
|
@ -102,7 +102,6 @@ GLIBC_2.21 pthread_getattr_np F
|
||||
GLIBC_2.21 pthread_getconcurrency F
|
||||
GLIBC_2.21 pthread_getcpuclockid F
|
||||
GLIBC_2.21 pthread_getname_np F
|
||||
GLIBC_2.21 pthread_getschedparam F
|
||||
GLIBC_2.21 pthread_getspecific F
|
||||
GLIBC_2.21 pthread_join F
|
||||
GLIBC_2.21 pthread_key_create F
|
||||
|
@ -52,7 +52,6 @@ GLIBC_2.0 pthread_cond_wait F
|
||||
GLIBC_2.0 pthread_create F
|
||||
GLIBC_2.0 pthread_detach F
|
||||
GLIBC_2.0 pthread_exit F
|
||||
GLIBC_2.0 pthread_getschedparam F
|
||||
GLIBC_2.0 pthread_getspecific F
|
||||
GLIBC_2.0 pthread_join F
|
||||
GLIBC_2.0 pthread_key_create F
|
||||
|
@ -117,7 +117,6 @@ GLIBC_2.3 pthread_exit F
|
||||
GLIBC_2.3 pthread_getattr_np F
|
||||
GLIBC_2.3 pthread_getconcurrency F
|
||||
GLIBC_2.3 pthread_getcpuclockid F
|
||||
GLIBC_2.3 pthread_getschedparam F
|
||||
GLIBC_2.3 pthread_getspecific F
|
||||
GLIBC_2.3 pthread_join F
|
||||
GLIBC_2.3 pthread_key_create F
|
||||
|
@ -101,7 +101,6 @@ GLIBC_2.17 pthread_getattr_np F
|
||||
GLIBC_2.17 pthread_getconcurrency F
|
||||
GLIBC_2.17 pthread_getcpuclockid F
|
||||
GLIBC_2.17 pthread_getname_np F
|
||||
GLIBC_2.17 pthread_getschedparam F
|
||||
GLIBC_2.17 pthread_getspecific F
|
||||
GLIBC_2.17 pthread_join F
|
||||
GLIBC_2.17 pthread_key_create F
|
||||
|
@ -99,7 +99,6 @@ GLIBC_2.27 pthread_getattr_np F
|
||||
GLIBC_2.27 pthread_getconcurrency F
|
||||
GLIBC_2.27 pthread_getcpuclockid F
|
||||
GLIBC_2.27 pthread_getname_np F
|
||||
GLIBC_2.27 pthread_getschedparam F
|
||||
GLIBC_2.27 pthread_getspecific F
|
||||
GLIBC_2.27 pthread_join F
|
||||
GLIBC_2.27 pthread_key_create F
|
||||
|
@ -52,7 +52,6 @@ GLIBC_2.0 pthread_cond_wait F
|
||||
GLIBC_2.0 pthread_create F
|
||||
GLIBC_2.0 pthread_detach F
|
||||
GLIBC_2.0 pthread_exit F
|
||||
GLIBC_2.0 pthread_getschedparam F
|
||||
GLIBC_2.0 pthread_getspecific F
|
||||
GLIBC_2.0 pthread_join F
|
||||
GLIBC_2.0 pthread_key_create F
|
||||
|
@ -98,7 +98,6 @@ GLIBC_2.2 pthread_detach F
|
||||
GLIBC_2.2 pthread_exit F
|
||||
GLIBC_2.2 pthread_getconcurrency F
|
||||
GLIBC_2.2 pthread_getcpuclockid F
|
||||
GLIBC_2.2 pthread_getschedparam F
|
||||
GLIBC_2.2 pthread_getspecific F
|
||||
GLIBC_2.2 pthread_join F
|
||||
GLIBC_2.2 pthread_key_create F
|
||||
|
@ -96,7 +96,6 @@ GLIBC_2.2 pthread_detach F
|
||||
GLIBC_2.2 pthread_exit F
|
||||
GLIBC_2.2 pthread_getconcurrency F
|
||||
GLIBC_2.2 pthread_getcpuclockid F
|
||||
GLIBC_2.2 pthread_getschedparam F
|
||||
GLIBC_2.2 pthread_getspecific F
|
||||
GLIBC_2.2 pthread_join F
|
||||
GLIBC_2.2 pthread_key_create F
|
||||
|
@ -96,7 +96,6 @@ GLIBC_2.2 pthread_detach F
|
||||
GLIBC_2.2 pthread_exit F
|
||||
GLIBC_2.2 pthread_getconcurrency F
|
||||
GLIBC_2.2 pthread_getcpuclockid F
|
||||
GLIBC_2.2 pthread_getschedparam F
|
||||
GLIBC_2.2 pthread_getspecific F
|
||||
GLIBC_2.2 pthread_join F
|
||||
GLIBC_2.2 pthread_key_create F
|
||||
|
@ -52,7 +52,6 @@ GLIBC_2.0 pthread_cond_wait F
|
||||
GLIBC_2.0 pthread_create F
|
||||
GLIBC_2.0 pthread_detach F
|
||||
GLIBC_2.0 pthread_exit F
|
||||
GLIBC_2.0 pthread_getschedparam F
|
||||
GLIBC_2.0 pthread_getspecific F
|
||||
GLIBC_2.0 pthread_join F
|
||||
GLIBC_2.0 pthread_key_create F
|
||||
|
@ -96,7 +96,6 @@ GLIBC_2.2 pthread_detach F
|
||||
GLIBC_2.2 pthread_exit F
|
||||
GLIBC_2.2 pthread_getconcurrency F
|
||||
GLIBC_2.2 pthread_getcpuclockid F
|
||||
GLIBC_2.2 pthread_getschedparam F
|
||||
GLIBC_2.2 pthread_getspecific F
|
||||
GLIBC_2.2 pthread_join F
|
||||
GLIBC_2.2 pthread_key_create F
|
||||
|
@ -97,7 +97,6 @@ GLIBC_2.2.5 pthread_exit F
|
||||
GLIBC_2.2.5 pthread_getattr_np F
|
||||
GLIBC_2.2.5 pthread_getconcurrency F
|
||||
GLIBC_2.2.5 pthread_getcpuclockid F
|
||||
GLIBC_2.2.5 pthread_getschedparam F
|
||||
GLIBC_2.2.5 pthread_getspecific F
|
||||
GLIBC_2.2.5 pthread_join F
|
||||
GLIBC_2.2.5 pthread_key_create F
|
||||
|
@ -101,7 +101,6 @@ GLIBC_2.16 pthread_getattr_np F
|
||||
GLIBC_2.16 pthread_getconcurrency F
|
||||
GLIBC_2.16 pthread_getcpuclockid F
|
||||
GLIBC_2.16 pthread_getname_np F
|
||||
GLIBC_2.16 pthread_getschedparam F
|
||||
GLIBC_2.16 pthread_getspecific F
|
||||
GLIBC_2.16 pthread_join F
|
||||
GLIBC_2.16 pthread_key_create F
|
||||
|
Loading…
Reference in New Issue
Block a user