From f0929a227b408f369c410645a87d3175a23876b0 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 10 Feb 2020 11:23:32 +0100 Subject: nptl: Move pthread_attr_setschedpolicy implementation into libc This is part of the libpthread removal project: Reviewed-by: Adhemerval Zanella --- nptl/Makefile | 2 +- nptl/Versions | 1 - nptl/forward.c | 3 --- nptl/nptl-init.c | 1 - 4 files changed, 1 insertion(+), 6 deletions(-) (limited to 'nptl') diff --git a/nptl/Makefile b/nptl/Makefile index fefbf89..6a86021 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 d8312e7..ca0a7e6 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 ed5b6c9..7e7fcf2 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 1f8852f..96c2b61 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, -- cgit v1.1