aboutsummaryrefslogtreecommitdiff
path: root/nptl/tpp.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-04-21 19:49:51 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-04-21 19:49:51 +0200
commit798cacde768c262d3979ba9c5eb224d6837fd92d (patch)
tree1f460c6e50893de64b3258355fc12e4b7753b62f /nptl/tpp.c
parenteb29dcde31e7b6f07e7acda161e85d2be69652e4 (diff)
downloadglibc-798cacde768c262d3979ba9c5eb224d6837fd92d.zip
glibc-798cacde768c262d3979ba9c5eb224d6837fd92d.tar.gz
glibc-798cacde768c262d3979ba9c5eb224d6837fd92d.tar.bz2
nptl: Move the internal thread priority protection symbols into libc
This is a prerequisite for moving the mutex implementation. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/tpp.c')
-rw-r--r--nptl/tpp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nptl/tpp.c b/nptl/tpp.c
index 8b7d9a2..7f58a75 100644
--- a/nptl/tpp.c
+++ b/nptl/tpp.c
@@ -25,9 +25,10 @@
#include <stdlib.h>
#include <atomic.h>
-
int __sched_fifo_min_prio = -1;
+libc_hidden_data_def (__sched_fifo_min_prio)
int __sched_fifo_max_prio = -1;
+libc_hidden_data_def (__sched_fifo_max_prio)
/* We only want to initialize __sched_fifo_min_prio and __sched_fifo_max_prio
once. The standard solution would be similar to pthread_once, but then
@@ -47,6 +48,7 @@ __init_sched_fifo_prio (void)
atomic_store_relaxed (&__sched_fifo_min_prio,
__sched_get_priority_min (SCHED_FIFO));
}
+libc_hidden_def (__init_sched_fifo_prio)
int
__pthread_tpp_change_priority (int previous_prio, int new_prio)
@@ -155,6 +157,7 @@ __pthread_tpp_change_priority (int previous_prio, int new_prio)
return result;
}
+libc_hidden_def (__pthread_tpp_change_priority)
int
__pthread_current_priority (void)
@@ -193,3 +196,4 @@ __pthread_current_priority (void)
return result;
}
+libc_hidden_def (__pthread_current_priority)