Changes in kernel/generic/src/proc/scheduler.c [6eef3c4:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/scheduler.c
r6eef3c4 r9d58539 98 98 else { 99 99 fpu_init(); 100 THREAD->fpu_context_exists = true;100 THREAD->fpu_context_exists = 1; 101 101 } 102 102 #endif … … 142 142 143 143 /* Don't prevent migration */ 144 CPU->fpu_owner->fpu_context_engaged = false;144 CPU->fpu_owner->fpu_context_engaged = 0; 145 145 irq_spinlock_unlock(&CPU->fpu_owner->lock, false); 146 146 CPU->fpu_owner = NULL; … … 163 163 } 164 164 fpu_init(); 165 THREAD->fpu_context_exists = true;165 THREAD->fpu_context_exists = 1; 166 166 } 167 167 168 168 CPU->fpu_owner = THREAD; 169 THREAD->fpu_context_engaged = true;169 THREAD->fpu_context_engaged = 1; 170 170 irq_spinlock_unlock(&THREAD->lock, false); 171 171 … … 248 248 249 249 /* 250 * Clear the stolen flag so that it can be migrated250 * Clear the THREAD_FLAG_STOLEN flag so that t can be migrated 251 251 * when load balancing needs emerge. 252 252 */ 253 thread-> stolen = false;253 thread->flags &= ~THREAD_FLAG_STOLEN; 254 254 irq_spinlock_unlock(&thread->lock, false); 255 255 … … 630 630 irq_spinlock_lock(&thread->lock, false); 631 631 632 if ((!thread->wired) && (!thread->stolen) && 633 (!thread->nomigrate) && 634 (!thread->fpu_context_engaged)) { 632 if (!(thread->flags & THREAD_FLAG_WIRED) && 633 !(thread->flags & THREAD_FLAG_STOLEN) && 634 !thread->nomigrate && 635 !thread->fpu_context_engaged) { 635 636 /* 636 637 * Remove thread from ready queue. … … 669 670 #endif 670 671 671 thread-> stolen = true;672 thread->flags |= THREAD_FLAG_STOLEN; 672 673 thread->state = Entering; 673 674
Note:
See TracChangeset
for help on using the changeset viewer.