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:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user