Changeset dd218ea in mainline
- Timestamp:
- 2023-04-15T16:30:15Z (18 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b2ec5cf
- Parents:
- c680333
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-03-28 16:12:16)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-04-15 16:30:15)
- Location:
- kernel/generic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/proc/thread.h
rc680333 rdd218ea 149 149 /** Containing task. */ 150 150 task_t *task; 151 /** Thread is wired to CPU. */152 bool wired;153 151 /** Thread was migrated to another CPU and has not run yet. */ 154 152 bool stolen; -
kernel/generic/src/proc/scheduler.c
rc680333 rdd218ea 589 589 irq_spinlock_lock(&thread->lock, false); 590 590 591 if ((!thread-> wired) && (!thread->stolen) &&591 if ((!thread->stolen) && 592 592 (!thread->nomigrate) && 593 593 (!thread->fpu_context_engaged)) { -
kernel/generic/src/proc/thread.c
rc680333 rdd218ea 231 231 irq_spinlock_lock(&thread->lock, true); 232 232 thread->cpu = cpu; 233 thread-> wired = true;233 thread->nomigrate++; 234 234 irq_spinlock_unlock(&thread->lock, true); 235 235 } … … 260 260 261 261 cpu_t *cpu; 262 if (thread-> wired || thread->nomigrate || thread->fpu_context_engaged) {262 if (thread->nomigrate || thread->fpu_context_engaged) { 263 263 /* Cannot ready to another CPU */ 264 264 assert(thread->cpu != NULL); … … 348 348 thread->priority = -1; /* Start in rq[0] */ 349 349 thread->cpu = NULL; 350 thread->wired = false;351 350 thread->stolen = false; 352 351 thread->uspace =
Note:
See TracChangeset
for help on using the changeset viewer.