From f2323817dde1e87d44e058af5954c25d72fbdb11 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 10 Feb 2020 11:51:05 +0100 Subject: nptl: Move pthread_setschedparam implementation into libc This is part of the libpthread removal project: Reviewed-by: Adhemerval Zanella --- nptl/Makefile | 2 +- nptl/Versions | 2 -- nptl/forward.c | 5 ----- nptl/nptl-init.c | 1 - 4 files changed, 1 insertion(+), 9 deletions(-) (limited to 'nptl') 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, -- cgit v1.2.3