kernel/thread: Assert that thread->pinned_to_cpu does not become negative.
May help with diagnosing #20100.
This commit is contained in:
@@ -411,6 +411,7 @@ static inline void
|
||||
thread_unpin_from_current_cpu(Thread* thread)
|
||||
{
|
||||
thread->pinned_to_cpu--;
|
||||
ASSERT(thread->pinned_to_cpu >= 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user