scheduler_reschedule_no_op(): panic() when the calling thread is not

continuing to run. This must not happen since the thread is the boot CPU's
idle thread performing the early kernel initialization (before the scheduler
is started).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36560 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-04-30 19:40:20 +00:00
parent 26f1dd2708
commit f651548ee6

View File

@ -24,6 +24,9 @@ static void (*sRescheduleFunction)(void);
static void
scheduler_reschedule_no_op(void)
{
struct thread* thread = thread_get_current_thread();
if (thread != NULL && thread->next_state != B_THREAD_READY)
panic("scheduler_reschedule_no_op() called in non-ready thread");
}