summaryrefslogtreecommitdiff
path: root/libpthread/nptl/pthread_setschedprio.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/nptl/pthread_setschedprio.c')
-rw-r--r--libpthread/nptl/pthread_setschedprio.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libpthread/nptl/pthread_setschedprio.c b/libpthread/nptl/pthread_setschedprio.c
index 063f5232f..e7ea4b76f 100644
--- a/libpthread/nptl/pthread_setschedprio.c
+++ b/libpthread/nptl/pthread_setschedprio.c
@@ -41,10 +41,6 @@ pthread_setschedprio (threadid, prio)
struct sched_param param;
param.sched_priority = prio;
- /* We have to handle cancellation in the following code since we are
- locking another threads desriptor. */
- pthread_cleanup_push ((void (*) (void *)) lll_unlock_wake_cb, &pd->lock);
-
lll_lock (pd->lock);
/* Try to set the scheduler information. */
@@ -60,7 +56,5 @@ pthread_setschedprio (threadid, prio)
lll_unlock (pd->lock);
- pthread_cleanup_pop (0);
-
return result;
}