/trunk/kernel/generic/include/proc/thread.h |
---|
53,7 → 53,11 |
/* Thread flags */ |
/** Thread cannot be migrated to another CPU. */ |
/** Thread cannot be migrated to another CPU. |
* |
* When using this flag, the caller must set cpu in the thread_t |
* structure manually before calling thread_ready (even on uniprocessor). |
*/ |
#define THREAD_FLAG_WIRED (1 << 0) |
/** Thread was migrated to another CPU and has not run yet. */ |
#define THREAD_FLAG_STOLEN (1 << 1) |
/trunk/kernel/generic/src/proc/thread.c |
---|
238,6 → 238,7 |
cpu = CPU; |
if (t->flags & THREAD_FLAG_WIRED) { |
ASSERT(t->cpu != NULL); |
cpu = t->cpu; |
} |
t->state = Ready; |