summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_exit.c')
-rw-r--r--lib/libpthread/thread/thr_exit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_exit.c b/lib/libpthread/thread/thr_exit.c
index 8435f43..22f187b 100644
--- a/lib/libpthread/thread/thr_exit.c
+++ b/lib/libpthread/thread/thr_exit.c
@@ -125,9 +125,8 @@ _pthread_exit(void *status)
/* This thread will never be re-scheduled. */
THR_LOCK_SWITCH(curthread);
THR_SET_STATE(curthread, PS_DEAD);
- _thr_sched_switch(curthread);
+ _thr_sched_switch_unlocked(curthread);
/* Never reach! */
- THR_UNLOCK_SWITCH(curthread);
/* This point should not be reached. */
PANIC("Dead thread has resumed");
OpenPOWER on IntegriCloud