diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2011-03-27 14:36:59 -0500 |
---|---|---|
committer | Patrick Williams <iawillia@us.ibm.com> | 2011-03-27 16:15:33 -0500 |
commit | b814aa6f09053fc1dc41d3c3048119c6133419f2 (patch) | |
tree | 442a9114ece0bfb82496e21fd99c61e43c743e20 /src | |
parent | 356fa7ffcf5c859fb12ceb901428b7b5b07a9687 (diff) | |
download | talos-hostboot-b814aa6f09053fc1dc41d3c3048119c6133419f2.tar.gz talos-hostboot-b814aa6f09053fc1dc41d3c3048119c6133419f2.zip |
Select new task in msg_sendrecv if receiver not waiting.
Diffstat (limited to 'src')
-rw-r--r-- | src/kernel/syscall.C | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/syscall.C b/src/kernel/syscall.C index 4d9cc7b4b..a61ddd6d9 100644 --- a/src/kernel/syscall.C +++ b/src/kernel/syscall.C @@ -264,6 +264,8 @@ namespace Systemcalls if (NULL == waiter) // None found, add to 'messages' queue. { mq->messages.insert(mp); + // Choose next thread to execute, this one is delayed. + t->cpu->scheduler->setNextRunnable(); } else // Context switch to waiter. { |