Changeset 18e0a6c in mainline for src/proc/scheduler.c
- Timestamp:
- 2005-06-09T23:43:45Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 74df77d
- Parents:
- d896525
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/proc/scheduler.c
rd896525 r18e0a6c 132 132 } 133 133 134 /* avoid deadlock with relink_rq */134 /* avoid deadlock with relink_rq() */ 135 135 if (!spinlock_trylock(&CPU->lock)) { 136 136 /* … … 447 447 448 448 cpu = &cpus[(i + k) % config.cpu_active]; 449 r = &cpu->rq[j];450 449 451 450 /* … … 454 453 */ 455 454 if (CPU == cpu) 456 continue; 455 continue; 457 456 458 457 restart: pri = cpu_priority_high(); 458 r = &cpu->rq[j]; 459 459 spinlock_lock(&r->lock); 460 460 if (r->n == 0) { … … 471 471 * We don't want to steal CPU-wired threads neither threads already stolen. 472 472 * The latter prevents threads from migrating between CPU's without ever being run. 473 * We don't want to steal threads whose FPU context is still in CPU 473 * We don't want to steal threads whose FPU context is still in CPU. 474 474 */ 475 475 spinlock_lock(&t->lock); 476 476 if ( (!(t->flags & (X_WIRED | X_STOLEN))) && (!(t->fpu_context_engaged)) ) { 477 477 478 /* 478 479 * Remove t from r.
Note:
See TracChangeset
for help on using the changeset viewer.