summaryrefslogtreecommitdiff
path: root/firmware/kernel/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/kernel/thread.c')
-rw-r--r--firmware/kernel/thread.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/firmware/kernel/thread.c b/firmware/kernel/thread.c
index 0a47f97..9855cc3 100644
--- a/firmware/kernel/thread.c
+++ b/firmware/kernel/thread.c
@@ -1527,10 +1527,8 @@ void block_thread(struct thread_entry *current, int timeout)
* INTERNAL: Intended for use by kernel objects and not for programs.
*---------------------------------------------------------------------------
*/
-unsigned int thread_queue_wake(struct thread_entry **list,
- volatile int *count)
+unsigned int thread_queue_wake(struct thread_entry **list)
{
- int num = 0;
unsigned result = THREAD_NONE;
for (;;)
@@ -1541,12 +1539,8 @@ unsigned int thread_queue_wake(struct thread_entry **list,
break; /* No more threads */
result |= rc;
- num++;
}
- if (count)
- *count = num;
-
return result;
}
@@ -1821,7 +1815,7 @@ static inline void thread_final_exit(struct thread_entry *current)
* execution except the slot itself. */
/* Signal this thread */
- thread_queue_wake(&current->queue, NULL);
+ thread_queue_wake(&current->queue);
corelock_unlock(&current->waiter_cl);
switch_thread();
/* This should never and must never be reached - if it is, the