summaryrefslogtreecommitdiff
path: root/libpthread/sysdeps/viengoos/pt-wakeup.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/sysdeps/viengoos/pt-wakeup.c')
-rw-r--r--libpthread/sysdeps/viengoos/pt-wakeup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpthread/sysdeps/viengoos/pt-wakeup.c b/libpthread/sysdeps/viengoos/pt-wakeup.c
index 6435689..da1b62f 100644
--- a/libpthread/sysdeps/viengoos/pt-wakeup.c
+++ b/libpthread/sysdeps/viengoos/pt-wakeup.c
@@ -44,8 +44,10 @@ __pthread_wakeup (struct __pthread *thread)
&thread->threadid, INT_MAX);
assertx (ret <= 1, "tid: %x, ret: %d", thread->threadid, ret);
+#ifdef USE_L4
if (ret == 0)
l4_thread_switch (thread->threadid);
+#endif
}
while (ret == 0);
}