summaryrefslogtreecommitdiff
path: root/libpthread/nptl/pthread_setschedparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/nptl/pthread_setschedparam.c')
-rw-r--r--libpthread/nptl/pthread_setschedparam.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libpthread/nptl/pthread_setschedparam.c b/libpthread/nptl/pthread_setschedparam.c
index c72116bcb..71c2f9b77 100644
--- a/libpthread/nptl/pthread_setschedparam.c
+++ b/libpthread/nptl/pthread_setschedparam.c
@@ -39,10 +39,6 @@ __pthread_setschedparam (threadid, policy, param)
int result = 0;
- /* 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,8 +56,6 @@ __pthread_setschedparam (threadid, policy, param)
lll_unlock (pd->lock);
- pthread_cleanup_pop (0);
-
return result;
}
strong_alias (__pthread_setschedparam, pthread_setschedparam)