Changes in kernel/generic/src/proc/scheduler.c [e1326cf:55b77d9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/scheduler.c
re1326cf r55b77d9 92 92 else 93 93 fpu_disable(); 94 #el if defined CONFIG_FPU94 #else 95 95 fpu_enable(); 96 96 if (THREAD->fpu_context_exists) … … 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 … … 327 327 THREAD->kcycles += get_cycle() - THREAD->last_cycle; 328 328 329 #if (defined CONFIG_FPU) && (!defined CONFIG_FPU_LAZY)329 #ifndef CONFIG_FPU_LAZY 330 330 fpu_context_save(THREAD->saved_fpu_context); 331 331 #endif … … 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.