Changeset 80d2bdb in mainline for generic/src/proc
- Timestamp:
- 2005-12-15T16:10:19Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b4cad8b2
- Parents:
- 7dd2561
- Location:
- generic/src/proc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/proc/scheduler.c
r7dd2561 r80d2bdb 491 491 ipl = interrupts_disable(); 492 492 spinlock_lock(&CPU->lock); 493 count = nrdy/ config.cpu_active;493 count = atomic_get(&nrdy) / config.cpu_active; 494 494 count -= CPU->nrdy; 495 495 spinlock_unlock(&CPU->lock); … … 619 619 * Tell find_best_thread() to wake us up later again. 620 620 */ 621 CPU->kcpulbstarted = 0;621 atomic_set(&CPU->kcpulbstarted,0); 622 622 goto loop; 623 623 } -
generic/src/proc/thread.c
r7dd2561 r80d2bdb 96 96 { 97 97 THREAD = NULL; 98 nrdy = 0;98 atomic_set(&nrdy,0); 99 99 } 100 100 … … 112 112 runq_t *r; 113 113 ipl_t ipl; 114 int i, avg , send_ipi = 0;114 int i, avg; 115 115 116 116 ipl = interrupts_disable(); … … 136 136 137 137 atomic_inc(&nrdy); 138 avg = nrdy/ config.cpu_active;138 avg = atomic_get(&nrdy) / config.cpu_active; 139 139 140 140 spinlock_lock(&cpu->lock);
Note:
See TracChangeset
for help on using the changeset viewer.