304 |
|
|
305 |
found_one: |
found_one: |
306 |
|
|
307 |
|
#if 0 |
308 |
if (thread != THREAD_CURRENT ()) |
if (thread != THREAD_CURRENT ()) |
309 |
trace_printf ("cpu %d thread select - thread %p (state %x)", |
trace_printf ("cpu %d thread select - thread %p (state %x)", |
310 |
CPU_CURRENT (), thread, thread->sched_state); |
CPU_CURRENT (), thread, thread->sched_state); |
311 |
|
#endif |
312 |
|
|
313 |
if (thread->runq_p) |
if (thread->runq_p) |
314 |
queue_remove (thread->runq_list, thread, struct thread *, runq); |
queue_remove (thread->runq_list, thread, struct thread *, runq); |