/branches/tracing/kernel/generic/src/time/clock.c |
---|
190,16 → 190,14 |
spinlock_unlock(&THREAD->lock); |
if (!ticks && !PREEMPTION_DISABLED) { |
/* |
* Make thread stoppable when preempted. |
* Necessary to be able to stop CPU-bound threads |
* that don't do any syscalls. |
*/ |
udebug_stoppable_begin(); |
scheduler(); |
udebug_stoppable_end(); |
/* |
* Give udebug chance to stop the thread |
* before it begins executing. |
*/ |
udebug_before_thread_runs(); |
} |
} |