summaryrefslogtreecommitdiff
path: root/libpthread/sysdeps/viengoos/pt-wakeup.c
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2009-01-17 23:27:02 +0100
committerNeal H. Walfield <neal@gnu.org>2009-01-18 02:18:31 +0100
commitf54b04fabd2b7e4514a0b8ed6e32b38dc85fc4ce (patch)
tree2ba9e71efd4f6cdef1c74238658317233b96774e /libpthread/sysdeps/viengoos/pt-wakeup.c
parentbbde6024c8b3b4b62c2a1ea1fa654df344d5f453 (diff)
Remove more uses of L4 specific functions in generic code.
2009-01-17 Neal H. Walfield <neal@gnu.org> * sysdeps/viengoos/pt-docancel.c (__pthread_do_cancel): Use hurd_myself, not l4_myself. [! USE_L4]: Abort. * sysdeps/viengoos/pt-wakeup.c (__pthread_wakeup) [! USE_L4]: Don't call l4_thread_switch.
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);
}